Re: [Lazarus] System color to TFPColor

2014-11-13 Thread Mattias Gaertner
On Thu, 13 Nov 2014 19:57:47 +0100 Krzysztof wrote: > Ok solved by TColorToFPColor(ColorToRGB(clHighlight)) Yes, but keep in mind that system colors are context sensitive. a clHightlight might be a different color on a TButton and on a TForm. And system colors depend on using as a Brush, Pen or

Re: [Lazarus] System color to TFPColor

2014-11-13 Thread Krzysztof
Ok solved by TColorToFPColor(ColorToRGB(clHighlight)) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] System color to TFPColor

2014-11-13 Thread Krzysztof
Hi, I need to convert system color (like clHighlight, clBtnText etc) into TFPColor. Function TColorToFPColor has comment "does not work on system color" and indeed it doesn't work (I always get black color). Many other color functions has this same comment. How to workaround this? Regards -- ___

Re: [Lazarus] TSQLQuery: Getting autoincremented ID value after insert (MySQL)

2014-11-13 Thread Marcos Douglas
On Thu, Nov 13, 2014 at 11:07 AM, Reimar Grabowski wrote: > Hi, > > first of all I am new to using Lazarus/FPC for database communication. > I have set up my database connection, transaction and queries via the Object > Inspector and all is working as it should. But I have a little problem > get

Re: [Lazarus] TSQLQuery: Getting autoincremented ID value after insert (MySQL)

2014-11-13 Thread silvioprog
On Thu, Nov 13, 2014 at 11:07 AM, Reimar Grabowski wrote: > Hi, > > first of all I am new to using Lazarus/FPC for database communication. > I have set up my database connection, transaction and queries via the > Object Inspector and all is working as it should. But I have a little > problem gett

[Lazarus] TSQLQuery: Getting autoincremented ID value after insert (MySQL)

2014-11-13 Thread Reimar Grabowski
Hi, first of all I am new to using Lazarus/FPC for database communication. I have set up my database connection, transaction and queries via the Object Inspector and all is working as it should. But I have a little problem getting the PK value of a newly inserted record (the PK field is an auto-