Re: [lazarus] Hi FPC svn error

2005-09-23 Thread Vincent Snijders

Nataraj S Narayan wrote:

Hi

I am getting the following after some time while using
svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc

svn: RA layer request failed
svn: REPORT request failed on '/svn/fpc/!svn/vcc/default'
svn: REPORT of '/svn/fpc/!svn/vcc/default': Could not read response 
body: connection was closed by server. (http://svn.freepascal.org)


It is happening always.



I googled a bit and found this link: 
http://www.sipfoundry.org/tools/svn-tips.html#proxy


Are you behind a proxy?

The trick to use https instead http, that is mentioned there, doesn't 
work for fpc.


Vincent.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Spinedit bug

2005-09-23 Thread dhkblaszyk
Where do I find the LFM?? I will make a patch

 On Thu, 22 Sep 2005 23:10:33 +0200 (CEST)
 [EMAIL PROTECTED] wrote:

 The Anchors dialog does not show anymore. I keep getting a message:
 Error
 reading LeftBorderSpaceSpinEdit.Decimal_Places: Unknown property:
 Decimal_places.
 Presumably caused by the spinedit changes from today??

 Yes. Edit the .lfm:
 Either remove Decimal_places from the .lfm or rename TSpinEdit to
 TFloatSpinEdit.

 TFloatSpinEdit has the 'single' values and 'Decimal_places' property.


 Mattias

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives



_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Single instance

2005-09-23 Thread Bogusław Brandys
Hello,

How to prevent my application to be run twice ?
I know a method of creating unique Mutex under Windows but I want
something platform independent.
Any special multiplatform  class or function for this ?


Regards
Boguslaw Brandys

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Single instance

2005-09-23 Thread Bogusław Brandys
Hello,

How to prevent my application to be run twice ?
I know a method of creating unique Mutex under Windows but I want
something platform independent.
Any special multiplatform  class or function for this ?


Regards
Boguslaw Brandys

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Spinedit bug

2005-09-23 Thread Mattias Gaertner
On Fri, 23 Sep 2005 01:43:52 +0200
Marc Weustink [EMAIL PROTECTED] wrote:

 Mattias Gaertner wrote:
  On Thu, 22 Sep 2005 23:10:33 +0200 (CEST)
  [EMAIL PROTECTED] wrote:
  
  
 The Anchors dialog does not show anymore. I keep getting a message:
 Error reading LeftBorderSpaceSpinEdit.Decimal_Places: Unknown property:
 Decimal_places.
 Presumably caused by the spinedit changes from today??
  
  
  Yes. Edit the .lfm:
  Either remove Decimal_places from the .lfm or rename TSpinEdit to
  TFloatSpinEdit.
  
  TFloatSpinEdit has the 'single' values and 'Decimal_places' property.
 
 Can we get rid of underscores in property names ? So that it would be 
 DecimalPlaces like all other properties ?

I did, but I forgot to tell and the above is a copy/paste mistake:

Decimal_places was renamed to DecimalPlaces
and Climb_Rate was renamed to ClimbRate.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Single instance

2005-09-23 Thread Razvan Adrian Bogdan
On 9/23/03, Bogusław Brandys [EMAIL PROTECTED] wrote:
 Hello,

 How to prevent my application to be run twice ?
 I know a method of creating unique Mutex under Windows but I want
 something platform independent.
 Any special multiplatform  class or function for this ?


 Regards
 Boguslaw Brandys

On windows i would process listing or send a global custom message but
i don't know how to achieve any of them in Linux, but i think that (as
usual) Linux may provide a file with the process list.

Razvan

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Daily snapshots

2005-09-23 Thread Bogusław Brandys
Hello,

I'm working on Windows mostly with daily snapshots,but I'd like to now
if it's possible to prepare also special snapshots : when Lazarus is
always taken from SVN but FPC is stable + fixes ?
Sometimes FPC unstable is broken (especially for debug info) and it is
really annoying.
I know that I'm lazy ;-) but daily snapshots are really wonderfull idea
so why dnot od it even better  ?


Regards
Boguslaw Brandys

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Daily snapshots

2005-09-23 Thread Vincent Snijders

Bogusław Brandys wrote:

Hello,

I'm working on Windows mostly with daily snapshots,but I'd like to now
if it's possible to prepare also special snapshots : when Lazarus is
always taken from SVN but FPC is stable + fixes ?
Sometimes FPC unstable is broken (especially for debug info) and it is
really annoying.
I know that I'm lazy ;-) but daily snapshots are really wonderfull idea
so why dnot od it even better  ?



After 0.9.10 has been released, I will focus on making two snapshots: 1 
for the latest released fpc (now 2.0.0, but then maybe 2.0.2) and one 
for fpc svn version.


Vincent.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] onchange event for edit box

2005-09-23 Thread barko
OnChange event is broken for edit box. latest svn and fpc 2.1.1 (working) from 
svn.

-- 
bye,
...s]-[it happens...

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Error in ProjectOpts when compiling with -dEnableLazDoc

2005-09-23 Thread Vincent Snijders

Hi,

I can't compile lazarus with -dEnableLazDoc:
C:\lazarus\source\lazarus\ide\ProjectOpts.pp(260,38) Error: identifier 
idents no member LazDocPathList
C:\lazarus\source\lazarus\ide\ProjectOpts.pp(310,13) Error: identifier 
idents no member LazDocPathList


Line 260 is:
  LazDocListBox.Items.Assign(Project.LazDocPathList);

TProject doesn't seem to have a LazDocPathList property

Vincent.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] IDE interface: commands and menus

2005-09-23 Thread Mattias Gaertner

I'm searching for testers. Just compile the IDE with '-dUseMenuIntf
-dUseIDEScopes' and work wit h it the next days.
Tools - Configure Build Lazarus - Options: -dUseMenuIntf -dUseIDEScopes
Or at command line
make clean all OPT='-dUseMenuIntf -dUseIDEScopes'


The story:

I completed the IDE menu and command interfaces (menuintf.pas and
idecommands.pas).
They are currently deactivated. To see the full thing you have to compile
with 
-dUseMenuIntf -dUseIDEScopes
You won't see any difference, except for a few menu items that changed
position.

That means packages can now add menu items to the IDE's mainmenu and the
popupmenus of the source editor, code explorer and messages. If you want to
extend some other menus: Just ask.

IDE commands (i.e. shortcuts) can now be added and you can define scopes
(windows, where these shortcuts are valid). This replaces the static command
areas.

To keep the amount of IFDEFs medium I have not yet finished some of the
aesthetical parts. That's why, some features are a little bit dirty to use.
For example:

Adding a new menu item:

At the moment:

  Item:=RegisterIDEMenuCommand('IDEMainMenu/mnuTools/itmSecondaryTools',
'ToolName','ToolCaption',@MyToolClick);

When the IFDEFs are gone in a few days and the variables are moved to the
IDEIntf you can use:

  Item:=RegisterIDEMenuCommand(itmSecondaryTools,
 'ToolName','ToolCaption',@MyToolClick);

With the menuintf the whole mainmenu has been structured. That means all
menuitems are now registered in a tree, without layout items like the
separators (menuitem.caption='-'). The separators are now generated
automatically by the IDE. That means, when you register new menu items, you
don't need to worry about the layout or the separators.


If I get positive feedback, this can be already enabled in 0.9.10.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Spinedit bug

2005-09-23 Thread dhkblaszyk
 In your own project directory.
 Or in the popup menu of the source editor.

Oops, I was under the impression that the property editor was the problem.
Apparently not.

Btw. If I would like to examine the poperty editor for TStrings, where
could I find it?? The counting of lines and characters seems not to work.
Either a bug or missing feature.

Darius

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Spinedit bug

2005-09-23 Thread Mattias Gaertner
On Fri, 23 Sep 2005 14:10:59 +0200 (CEST)
[EMAIL PROTECTED] wrote:

  In your own project directory.
  Or in the popup menu of the source editor.
 
 Oops, I was under the impression that the property editor was the problem.
 Apparently not.
 
 Btw. If I would like to examine the poperty editor for TStrings, where
 could I find it?? The counting of lines and characters seems not to work.
 Either a bug or missing feature.

ideintf/propedits.pp
TStringsPropertyEditor
and
TStringsPropEditorDlg


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] onchange event for edit box

2005-09-23 Thread Mattias Gaertner
On Fri, 23 Sep 2005 12:30:08 +0200
barko [EMAIL PROTECTED] wrote:

 OnChange event is broken for edit box. latest svn and fpc 2.1.1 (working)
 from  svn.

Fixed.

Mattias
 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Error in ProjectOpts when compiling with -dEnableLazDoc

2005-09-23 Thread Mattias Gaertner
On Fri, 23 Sep 2005 14:16:02 +0200 (CEST)
[EMAIL PROTECTED] wrote:

  TProject doesn't seem to have a LazDocPathList property
 
 This patch should fix this.

Applied. Thanks.

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Daily snapshots

2005-09-23 Thread Luis R. Hilario B.
2005/9/23, Vincent Snijders [EMAIL PROTECTED]:

 After 0.9.10 has been released,

 Vincent.

Should not be Lazarus in frozen mode for the version 1.0?
Various translators we have to work double, because the content changes.

Lazarus 2006 Ya! :)
--
http://luisdigital.com

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] onchange event for edit box

2005-09-23 Thread barko
Thanks Mattias! :)

Dne petek 23. septembra 2005 14:31 je Mattias Gaertner napisal(a):
 On Fri, 23 Sep 2005 12:30:08 +0200

 barko [EMAIL PROTECTED] wrote:
  OnChange event is broken for edit box. latest svn and fpc 2.1.1 (working)
  from  svn.

 Fixed.

 Mattias


 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

-- 
bye,
...s]-[it happens...

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] TSpinEdit.Climb_Rate error

2005-09-23 Thread Crause, Christo \(JC\)
Title: TSpinEdit.Climb_Rate error






I cannot open the Debugger Options form in Lazarus after compiling today's SVN version of Lazarus. It gives the following error:

Error reading seLimitLinecount.Climb_Rate: Unknown property: Climb_Rate when loading the .lfm file.


The TSpinEdit component only has a ClimbRate property. I guess the .lfm file has to be updated to reflect the change in property name?

Christo










NOTICE: Please note that this eMail, and the contents 
thereof,is subject to the standard Sasol eMail legal notice which may be 
found at: http://www.sasol.com/legalnotices
If you cannot access the legal notice through the URL 
attached and you wish to receive a copy thereof please send an eMail to [EMAIL PROTECTED]







Re: [lazarus] Daily snapshots

2005-09-23 Thread Mattias Gaertner
On Fri, 23 Sep 2005 08:55:56 -0400
Luis R. Hilario B. [EMAIL PROTECTED] wrote:

 2005/9/23, Vincent Snijders [EMAIL PROTECTED]:
 
  After 0.9.10 has been released,
 
  Vincent.
 
 Should not be Lazarus in frozen mode for the version 1.0?

That would be too early. There are still 149 issues. 


 Various translators we have to work double, because the content changes.
 
 Lazarus 2006 Ya! :)

:)


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TSpinEdit.Climb_Rate error

2005-09-23 Thread Mattias Gaertner
On Fri, 23 Sep 2005 15:39:19 +0200
Crause, Christo (JC) [EMAIL PROTECTED] wrote:

 I cannot open the Debugger Options form in Lazarus after compiling
 today's SVN version of Lazarus.  It gives the following error:
 
 Error reading seLimitLinecount.Climb_Rate: Unknown property:
 Climb_Rate when loading the .lfm file.
 
 The TSpinEdit component only has a ClimbRate property.  I guess the .lfm
 file has to be updated to reflect the change in property name?

Fixed.

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Ubuntu problems

2005-09-23 Thread Bogusław Brandys
Hello,

Still have problems with Lazarus compiled for GTK2 on Ubuntu.It works
but freeze on any IDe configuration dialog (I want to check my font for
source editor because it doesn't display Polish chars and when I type
any char there is funny empty space after that always) Anyway, this is
major crash here so I cannot close open configuration dialog and console
shown GTK critical error - somethin about VIEWPORT (look at my previous
e-mails).

There was suspect that it was caused by upgrade of Xorg libraries but I
forced to install previous version and still the same.


Error:

(lazarus:8336) : gtk-CRITICAL **: gtk_viewport_set_shadow_type :
assertion 'GTK_IS_VIEWPORT(viewport)' failed

P.S. I will probably remove Ubuntu and instal Mandriva, because Lazarus
is unusable under Ubuntu for me. :-(

Regards
Boguslaw Brandys

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] SVN update

2005-09-23 Thread Mattias Gaertner

I started the Source Editor interface (SrcEditorIntf.pas in package
IDEIntf).


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Ubuntu problems

2005-09-23 Thread Bogusław Brandys
Mattias Gaertner wrote:
 On Fri, 23 Sep 2005 16:42:59 +0200
 Bogus__aw Brandys [EMAIL PROTECTED] wrote:
 
 
Hello,

Still have problems with Lazarus compiled for GTK2 on Ubuntu.It works
but freeze on any IDe configuration dialog (I want to check my font for
source editor because it doesn't display Polish chars and when I type
any char there is funny empty space after that always) Anyway, this is
major crash here so I cannot close open configuration dialog and console
shown GTK critical error - somethin about VIEWPORT (look at my previous
e-mails).

There was suspect that it was caused by upgrade of Xorg libraries but I
forced to install previous version and still the same.


Error:

(lazarus:8336) : gtk-CRITICAL **: gtk_viewport_set_shadow_type :

assertion 'GTK_IS_VIEWPORT(viewport)' failed

P.S. I will probably remove Ubuntu and instal Mandriva, because Lazarus
is unusable under Ubuntu for me. :-(
 
  
 Did you try using gtk1 for the IDE and gtk2 for your projects?
 
 
 Mattias
 

Hmm.No.Is it possible ?


Regards
Boguslaw Brandys

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Gtk2 - Listbox not assign font?

2005-09-23 Thread v.scozzaro '[EMAIL PROTECTED]'

Gtk2 - Listbox not assign font?

Tanks

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] dxgettext

2005-09-23 Thread Bogusław Brandys
I have found something cool ! gettext conversion for Delphi which is (I
stated) compilable with FreePascal

Look at : http://dybdahl.dk/dxgettext/

Is it much simpler and not restricted by LGPL  then existing Lazarus
gettext support ?
Someone has experience with that tool ?

Regards
Boguslaw Brandys

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Ubuntu problems

2005-09-23 Thread Bogusław Brandys
A.J. Venter wrote:
Did you try using gtk1 for the IDE and gtk2 for your projects?
 
 
Hmm.No.Is it possible ?


 
 Yes, provided of course you have both GTK1 and GTK2 libs installed.
 
 Since your lazarus is already compiled for GTK2, that means the LCL is also 
 compiled with GTK2 support, so you don't need to worry about that, open the 
 configure build ide dialog, and change LCL back to GTK1 though, set for a 
 full build and clean all.
 Then run Build lazarus
 
 After it starts back, lazarus will, once more, be using GTK1, now to compile 
 your projects, go into project | compiler options, and change the interface 
 to GTK2 for each project.
 
 Works like a charm.
 
 A.J.
 

I can't compile from IDE.should I do make LCL_PACKAGE=GTK1 , I don't
remember exactly this define.Please help.


Regards
Boguslaw Brandys

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Ubuntu problems

2005-09-23 Thread Mattias Gaertner
On Fri, 23 Sep 2005 18:45:47 +0200
Bogus__aw Brandys [EMAIL PROTECTED] wrote:

 A.J. Venter wrote:
 Did you try using gtk1 for the IDE and gtk2 for your projects?
  
  
 Hmm.No.Is it possible ?
 
 
  
  Yes, provided of course you have both GTK1 and GTK2 libs installed.
  
  Since your lazarus is already compiled for GTK2, that means the LCL is
  also  compiled with GTK2 support, so you don't need to worry about that,
  open the  configure build ide dialog, and change LCL back to GTK1
  though, set for a  full build and clean all.
  Then run Build lazarus
  
  After it starts back, lazarus will, once more, be using GTK1, now to
  compile  your projects, go into project | compiler options, and change
  the interface  to GTK2 for each project.
  
  Works like a charm.
  
  A.J.
  
 
 I can't compile from IDE.should I do make LCL_PACKAGE=GTK1 , I don't
 remember exactly this define.Please help.

export LCL_PLATFORM=gtk2
make clean all

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] A diff voor lazaruside.nl.po

2005-09-23 Thread Mattias Gaertner
On Fri, 23 Sep 2005 18:05:21 +0200
Matthijs Willemstein [EMAIL PROTECTED] wrote:

 Hi,
 
 A new diff for the Dutch translation of the lazarus IDE.

Thanks. Applied.

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] open file with associated application

2005-09-23 Thread Inpromptu
I use

var s:longint;

.
.
.

s:=shell('kfmclient exec '+filename);

It works if you have KDE.


Inpromptu




 On 9/18/05, Melchiorre Caruso [EMAIL PROTECTED] wrote:
   Hi,
 
   could anybody explain to me how to open a files with associated
  application?
 
   With Delphi I use ShellExecute function:
 
 ShellExecute (0, 'open', PChar (FileName), nil, PChar (PathName),
  SW_SHOW);
 
   but I search a function, that works on both OS (Linux and Windows);
 
 
   Thank you
 
   ---
   Melchiorre Caruso

 From what i know there is none, in Linux you should have shell() but i
 don't know if it works for this and there you have different
 associations in KDE, GNOME and others, you can basically check where
 the associations file is and load the app that is set to open that
 kind of file, you can see Lazarus itself does a serch for browsers
 when invoking help on Linux. Maybe someone finds a better method to
 load associated apps :)

 Razvan

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] StrLCopy for PWideChar ?

2005-09-23 Thread Alexander Todorov
Hello,
does somebody know a function to replace StrLCopy and StrLen that works with
PWideChar instead of PChar ?
It seems to me that WideString support is not fully working yet.
(fpc 2.0.0 and Lazarus 0.9.8 from windows binaries).
Can you help / give more information about widestrings?

TIA.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] IDE interface: commands and menus

2005-09-23 Thread Andrew Haines

Mattias Gaertner wrote:


I'm searching for testers. Just compile the IDE with '-dUseMenuIntf
-dUseIDEScopes' and work wit h it the next days.
Tools - Configure Build Lazarus - Options: -dUseMenuIntf -dUseIDEScopes
Or at command line
make clean all OPT='-dUseMenuIntf -dUseIDEScopes'


The story:

I completed the IDE menu and command interfaces (menuintf.pas and
idecommands.pas).
They are currently deactivated. To see the full thing you have to compile
with 
-dUseMenuIntf -dUseIDEScopes

You won't see any difference, except for a few menu items that changed
position.

That means packages can now add menu items to the IDE's mainmenu and the
popupmenus of the source editor, code explorer and messages. If you want to
extend some other menus: Just ask.

IDE commands (i.e. shortcuts) can now be added and you can define scopes
(windows, where these shortcuts are valid). This replaces the static command
areas.

To keep the amount of IFDEFs medium I have not yet finished some of the
aesthetical parts. That's why, some features are a little bit dirty to use.
For example:

Adding a new menu item:

At the moment:

 Item:=RegisterIDEMenuCommand('IDEMainMenu/mnuTools/itmSecondaryTools',
   'ToolName','ToolCaption',@MyToolClick);

When the IFDEFs are gone in a few days and the variables are moved to the
IDEIntf you can use:

 Item:=RegisterIDEMenuCommand(itmSecondaryTools,
'ToolName','ToolCaption',@MyToolClick);

With the menuintf the whole mainmenu has been structured. That means all
menuitems are now registered in a tree, without layout items like the
separators (menuitem.caption='-'). The separators are now generated
automatically by the IDE. That means, when you register new menu items, you
don't need to worry about the layout or the separators.


If I get positive feedback, this can be already enabled in 0.9.10.

 

I have no components that need this but I did compile lazarus with these 
defines. Now nothing in the Window menu works (Object Inspector, 
Form1, Lazarus Source Editor, etc). The keyboard shortcuts to activate 
OI and switch between form/unit work okay.


Andrew

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus]

2005-09-23 Thread dhkblaszyk
 Or at command line
 make clean all OPT='-dUseMenuIntf -dUseIDEScopes'

I keep getting the following error:

C:\lazarusmake clean all OPT='-dUseMenuIntf -dUseIDEScopes'
make: invalid option -- U
Usage: make [options] [target] ...
Options:
  -b, -m  Ignored for compatibility.
  -B, --always-make   Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
  Change to DIRECTORY before doing anything.
etc.

and when I compile from IDE I get the following:

C:\lazarus\packager\PkgManager.pas(1189,6) Error: Incompatible types: got
AnsiString expected Char

Any ideas??

Darius

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] IDE interface: commands and menus

2005-09-23 Thread Mattias Gaertner
On Fri, 23 Sep 2005 16:36:42 -0400
Andrew Haines [EMAIL PROTECTED] wrote:

 Mattias Gaertner wrote:
 
 I'm searching for testers. Just compile the IDE with '-dUseMenuIntf
 -dUseIDEScopes' and work wit h it the next days.
 Tools - Configure Build Lazarus - Options: -dUseMenuIntf -dUseIDEScopes
 Or at command line
 make clean all OPT='-dUseMenuIntf -dUseIDEScopes'
 
 
 The story:
 
 I completed the IDE menu and command interfaces (menuintf.pas and
 idecommands.pas).
 They are currently deactivated. To see the full thing you have to compile
 with 
 -dUseMenuIntf -dUseIDEScopes
 You won't see any difference, except for a few menu items that changed
 position.
 
 That means packages can now add menu items to the IDE's mainmenu and the
 popupmenus of the source editor, code explorer and messages. If you want
 to extend some other menus: Just ask.
 
 IDE commands (i.e. shortcuts) can now be added and you can define scopes
 (windows, where these shortcuts are valid). This replaces the static
 command areas.
 
 To keep the amount of IFDEFs medium I have not yet finished some of the
 aesthetical parts. That's why, some features are a little bit dirty to
 use. For example:
 
 Adding a new menu item:
 
 At the moment:
 
   Item:=RegisterIDEMenuCommand('IDEMainMenu/mnuTools/itmSecondaryTools',
 'ToolName','ToolCaption',@MyToolClick);
 
 When the IFDEFs are gone in a few days and the variables are moved to the
 IDEIntf you can use:
 
   Item:=RegisterIDEMenuCommand(itmSecondaryTools,
  'ToolName','ToolCaption',@MyToolClick);
 
 With the menuintf the whole mainmenu has been structured. That means all
 menuitems are now registered in a tree, without layout items like the
 separators (menuitem.caption='-'). The separators are now generated
 automatically by the IDE. That means, when you register new menu items,
 you don't need to worry about the layout or the separators.
 
 
 If I get positive feedback, this can be already enabled in 0.9.10.
 
   
 
 I have no components that need this but I did compile lazarus with these 
 defines. Now nothing in the Window menu works (Object Inspector, 
 Form1, Lazarus Source Editor, etc). 

Fixed.


 The keyboard shortcuts to activate 
 OI and switch between form/unit work okay.

Anything else?


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] dbGrid automatic column resize to data length

2005-09-23 Thread Jesus Reyes

 --- Micha³ Wojtaszek [EMAIL PROTECTED] escribió:

 Hi all
 I have one, i think easy question. I have SQLite table filed by
 data. I
 configure SQLiteDataset, DataSource and etc. and it works just
 fine.
 There only one problem. All cols has fixed width. When I use 
 StringGrid
 just call AutoAlighnColumns (or similar command) and all columns
 have
 automagically proper widths. My question is: Is there (in dbGrid)
 any
 similar function?
 I need answer as soon as possible. I have to complete application
 to
 customer (my father :)) and this is the last issue...
  
 Thanks a lot
 
 MichaÅ#8218; Wojtaszek
 
 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
 

It's a known problem which is fixed now, I will commit the patch
tomorrow.

Jesus Reyes A.



__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus]

2005-09-23 Thread Darius Blaszijk
On Fri, 2005-09-23 at 23:04, Mattias Gaertner wrote:
 I just tested: It does compile.
 What fpc are you using?
2.0.0

 C:\lazarus\packager\PkgManager.pas(1189,6) Error: Incompatible types:
got
 AnsiString expected Char

btw. make clean all did also give me the above error, so not related to
the switches

darius


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus]

2005-09-23 Thread Mattias Gaertner
On 23 Sep 2005 23:29:07 +0200
Darius Blaszijk [EMAIL PROTECTED] wrote:

 On Fri, 2005-09-23 at 23:04, Mattias Gaertner wrote:
  I just tested: It does compile.
  What fpc are you using?
 2.0.0
 
  C:\lazarus\packager\PkgManager.pas(1189,6) Error: Incompatible types:
 got
  AnsiString expected Char
 
 btw. make clean all did also give me the above error, so not related to
 the switches

Ah. Sorry. My fault. It was indeed a win32 specific thing. LineEnding is
string under win32.
Fixed.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] dbGrid automatic column resize to data length

2005-09-23 Thread Michał Wojtaszek
It will be just great. I love You Man !!! (only I have no idea what my
wife thinks about it :)))
I cross my fingers and wait till it comes.

Thanks

Michal
 

Dnia 23-09-2005, pią o godzinie 16:27 -0500, Jesus Reyes napisał(a):
  --- Micha³ Wojtaszek [EMAIL PROTECTED] escribió:
 
  Hi all
  I have one, i think easy question. I have SQLite table filed by
  data. I
  configure SQLiteDataset, DataSource and etc. and it works just
  fine.
  There only one problem. All cols has fixed width. When I use 
  StringGrid
  just call AutoAlighnColumns (or similar command) and all columns
  have
  automagically proper widths. My question is: Is there (in dbGrid)
  any
  similar function?
  I need answer as soon as possible. I have to complete application
  to
  customer (my father :)) and this is the last issue...
   
  Thanks a lot
  
  MichaÅ#8218; Wojtaszek
  
  _
   To unsubscribe: mail [EMAIL PROTECTED] with
  unsubscribe as the Subject
 archives at http://www.lazarus.freepascal.org/mailarchives
  
 
 It's a known problem which is fixed now, I will commit the patch
 tomorrow.
 
 Jesus Reyes A.
 
 
 
 __
 Correo Yahoo!
 Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
 Regístrate ya - http://correo.yahoo.com.mx/ 
 
 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Several patches

2005-09-23 Thread Jesus Reyes

- Original Message - 
From: [EMAIL PROTECTED]
To: lazarus@miraclec.com
Sent: Friday, September 23, 2005 1:43 PM
Subject: [lazarus] Several patches


 Here are two patches, which were lying around some time.
 
 grids:
 - code cleanup for goFixedRowNumbering
 - added goHideCells: if set the grid is blank. Usefull when no data is to
 be shown.
 
 snip
 
 Darius

Lazarus grids have the clear method which does just that, the only thing is 
that one have to reconstruct the grid, and setting ColCount:=0 or RowCount:=0 
has the same effect.
Also, currently grids can have ColCount=FixedCols or RowCount=FixedRows,  which 
should look like a empty grid but with Cols or Rows headers.

Jesus Reyes A.

__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] dbGrid again, problems with dgTitles=False

2005-09-23 Thread Michał Wojtaszek
Hello again.
Another problem with dbGrid:
When I set dgTitles to false I still have 2 rows, even it they are
empty. When they are filed and I delete first row second row comes up
and dbGrid displays two exactly the same rows (second is fake, it
disappear when I delete first) Probably this is normal behaviour, but
when Titles are on place they are cover firs row (or rows are display
starting from row 1 not 0).

Regards

Michal

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Lazarus crashes while starting

2005-09-23 Thread Lord Satan
 Maybe someone has an idea?
 
The problem seems to be the use of gtk1 pixmap themes as lazarus always crashes 
while using one of these. Using themes that do not rely on the gtk pixmap 
engine solves the problem. The downside is that all good looking themes I know 
are pixmap based but at least lazarus works again. 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives