[lazarus] *.xml config files under Windows

2007-07-18 Thread Graeme Geldenhuys
Hi, Where does Lazarus under Windows store the *.xml config files? For example under Linux it is or the Lazarus directory or the ~/.lazarus directory. What is the equivalent under Windows? My Source Editor screen is screwed up (Tab key jumps 8 spaces, etc) and I want to reset all settings

Re: [lazarus] *.xml config files under Windows

2007-07-18 Thread Graeme Geldenhuys
On 18/07/07, Vincent Snijders [EMAIL PROTECTED] wrote: It is in the lazarus executable directory. This is likely to change before 1.0 to the some applictiondata directory, as given by the sysutils.GetAppConfigDir (or what is that function name?). Ah ok. I thought GetAppConfigDir() was

[lazarus] How to send a bug fix?

2007-07-18 Thread Giuliano Colla
I posted on this mail list, one week ago a couple of bug fixes for TSpeedButton. One of them was just fixing a typo, which made the button glyph get random y position, the other a bug fix, because a calculation was leading to a negative width destination rectangle, making the glyph to

Re: [lazarus] How to send a bug fix?

2007-07-18 Thread Marc Weustink
Giuliano Colla wrote: I posted on this mail list, one week ago a couple of bug fixes for TSpeedButton. One of them was just fixing a typo, which made the button glyph get random y position, the other a bug fix, because a calculation was leading to a negative width destination rectangle, making

[lazarus] PATCH: definition of HKEY in regdef.inc

2007-07-18 Thread Tobias Giesen
Hello, in regdef.inc, HKEY is defined as Cardinal. However, this causes range check errors on Mac i386. I had to change it to DWORD. Maybe you would like to adopt this change (regdef.inc line 62). Cardinal on i386 Mac apparently cannot handle values like HKEY_CURRENT_USER which is $8001.

Re: [lazarus] PATCH: definition of HKEY in regdef.inc

2007-07-18 Thread Vincent Snijders
Tobias Giesen schreef: Hello, in regdef.inc, HKEY is defined as Cardinal. However, this causes range check errors on Mac i386. I had to change it to DWORD. Maybe you would like to adopt this change (regdef.inc line 62). Cardinal on i386 Mac apparently cannot handle values like

[lazarus] TSpeedButton bugs patch

2007-07-18 Thread Giuliano Colla
Here's it again The attached patch fixes 2 issues for TSpeedButton: 1) With no Caption, the glyph is centered if Layout is Glyph Left or Glyph right, somewhere up or down with Glyph Top or Glyph Bottom. Reason: in speedbutton.inc, if Caption is empty, Result.CX is set twice to zero while

Re: [lazarus] PATCH: definition of HKEY in regdef.inc

2007-07-18 Thread Tobias Giesen
Cardinal on i386 Mac apparently cannot handle values like HKEY_CURRENT_USER which is $8001. I don't understand. Cardinal and DWORD are both 32 bits unsigned integers. I don't understand either, but the facts are that DWORD is always the standard type to use in a Windows API

[lazarus] TButton.Color

2007-07-18 Thread Vincent Snijders
I am looking at bug 1188: TButton.Color doesn't work on windows. http://www.freepascal.org/mantis/view.php?id=1188 Does anybody know how to change the buttons color on windows (without resorting to ownerdrawn)? Vincent _ To

Re: [lazarus] TButton.Color

2007-07-18 Thread Felipe Monteiro de Carvalho
On 7/18/07, Vincent Snijders [EMAIL PROTECTED] wrote: Does anybody know how to change the buttons color on windows (without resorting to ownerdrawn)? I find it strange that it doesn't work on Windows. According to this screenshot:

Re: [lazarus] TButton.Color

2007-07-18 Thread Felipe Monteiro de Carvalho
On 7/18/07, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: It works on WinCE Or maybe that is just a rectangle? the WinCE button is so simple that I always thougth that was a button, but looking again now I see it could be a rectangle with text inside =) -- Felipe Monteiro de Carvalho

Re: [lazarus] PATCH: definition of HKEY in regdef.inc

2007-07-18 Thread Felipe Monteiro de Carvalho
On 7/18/07, Tobias Giesen [EMAIL PROTECTED] wrote: in regdef.inc What is the location of this file? Cardinal on i386 Mac Are you using Windows througth Boot Camp or something similar? -- Felipe Monteiro de Carvalho _ To

[lazarus] exception while installing a package

2007-07-18 Thread Burkhard Carstens
Hi, I am getting errors, when installing a package in lazarus as user, while lazarus itself is installed to /usr/ (iow. root-writable only). This problem persists since quite some time, but til now, it failed only on one package, now it fails on many many packages. Funny thing is: it gets over

Re: [lazarus] PATCH: definition of HKEY in regdef.inc

2007-07-18 Thread Tobias Giesen
in regdef.inc What is the location of this file? /usr/local/share/fpcsrc/fcl/inc Cardinal on i386 Mac Are you using Windows througth Boot Camp or something similar? No, I am using the native MacOS X i386 lazarus version. I need to use some Windows structs inside of my app, even if most of

Re: [lazarus] Trouble registering on lazarus.freepascal.org

2007-07-18 Thread John vd Waeter
Hmm, anyone? Still no luck... John John vd Waeter wrote: Marc Weustink wrote: John vd Waeter wrote: Hi all, I try to register at lazarus.freepascal.org, but no emails with password are sent from the site. Can anyone take a look at it? Where did you try to register for ? Mantis ?

Re: [lazarus] TSpeedButton bugs patch

2007-07-18 Thread Marc Weustink
Giuliano Colla wrote: Here's it again The attached patch fixes 2 issues for TSpeedButton: 1) With no Caption, the glyph is centered if Layout is Glyph Left or Glyph right, somewhere up or down with Glyph Top or Glyph Bottom. Reason: in speedbutton.inc, if Caption is empty, Result.CX is set

Re: [lazarus] PATCH: definition of HKEY in regdef.inc

2007-07-18 Thread Felipe Monteiro de Carvalho
On 7/18/07, Tobias Giesen [EMAIL PROTECTED] wrote: What is the location of this file? /usr/local/share/fpcsrc/fcl/inc I thougth it would be on fpc somewhere ... you should have posted on one of the free pascal mailling lists: http://www.freepascal.org/maillist.var The lazarus list is about

Re: [lazarus] *.xml config files under Windows

2007-07-18 Thread Marco van de Voort
On Wed, Jul 18, 2007 at 11:04:19AM +0200, Vincent Snijders wrote: Graeme Geldenhuys schreef: Hi, Where does Lazarus under Windows store the *.xml config files? For example under Linux it is or the Lazarus directory or the ~/.lazarus directory. What is the equivalent under Windows? It is

Re: [lazarus] *.xml config files under Windows

2007-07-18 Thread Vincent Snijders
Marco van de Voort schreef: On Wed, Jul 18, 2007 at 11:04:19AM +0200, Vincent Snijders wrote: Graeme Geldenhuys schreef: Hi, Where does Lazarus under Windows store the *.xml config files? For example under Linux it is or the Lazarus directory or the ~/.lazarus directory. What is the

Re: [lazarus] Initialize a DBGrid

2007-07-18 Thread Darmawan Sugiarto
German C. Basisty [EMAIL PROTECTED] wrote:Hi! Here goes another question: I have a form. This form contains a DBGrid. The DBGrid retrives information via an SQL connection from a PostgreSQL Database. How do I do to initialize parameters (like