Re: [Lazarus] DBGrid columns shrunk to fit data

2009-06-18 Thread Graeme Geldenhuys
Graeme Geldenhuys wrote: Is there an option for the DBGrid to automatically resize its columns to fit the data? Anybody know if TDBGrid can do this? If so, what properties need to be set? Here is a bug report regarding this issue. The report also contains two comparison images showing the

Re: [Lazarus] Lazarus r20657 is broken

2009-06-18 Thread Torsten Bonde Christiansen
Maxim Ganetsky wrote: I get the same thing when trying to use the CTRL-SHIFT-S (save all). I'm using Rev. 20660 on linux and Gtk2. Regards, Torsten. Hi. Lazarus r20657 opened with empty project crashes when I try to close it. Probably this crash is related to latest code folding changes.

Re: [Lazarus] DBGrid columns shrunk to fit data

2009-06-18 Thread Graeme Geldenhuys
Luca Olivetti wrote: My comment was about verbatim copying of /code/ from TRxDBGrid to TDBGrid OK. Verbatim copying is 99% of the time not a good idea anyway. ;-) Regards, - Graeme - ___ fpGUI - a cross-platform GUI toolkit using Free

[Lazarus] How to use TDBLookupComboBox like with Delphi?

2009-06-18 Thread Gabor Boros
Hi, In Delphi I use TDBLookupComboBox for select a row from a table. I only use three properties for this. ListSource, ListField, KeyField. And I can read the KeyField's value from the KeyValue property. I want to use this component for same task but not working for me. The result is an empty

Re: [Lazarus] How to use TDBLookupComboBox like with Delphi?

2009-06-18 Thread Luca Olivetti
En/na Gabor Boros ha escrit: Hi, In Delphi I use TDBLookupComboBox for select a row from a table. I only use three properties for this. ListSource, ListField, KeyField. And I can read the KeyField's value from the KeyValue property. I want to use this component for same task but not working

[Lazarus] Some thoughts about the global 'Application' instance.

2009-06-18 Thread Joost van der Sluis
Hi all, I always thought that an application always had one Application-instance from the TCustomAppliction class. But at this moment this is not the case for fcl-web applications, or daemon-applications which are using Lazarus-forms. Take for example the fpcgi unit from fcl-web. (not the old

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-18 Thread Joost van der Sluis
Op donderdag 18-06-2009 om 16:11 uur [tijdzone +0200], schreef Zaher Dirkey: Same in Delphi I know, but can't we come up with a better design? I have service and forms application in same exe file, so i have 2 application in same instance. Joost. --

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-18 Thread Zaher Dirkey
Which doesn't make it correct. I Agree, but CustApp.pp belong to FPC team. If it is done, i will like it, because i can create my custom application class then add my special properties. -- Zaher Dirkey -- ___ Lazarus mailing list

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-18 Thread Michael Van Canneyt
On Thu, 18 Jun 2009, Joost van der Sluis wrote: Hi all, I always thought that an application always had one Application-instance from the TCustomAppliction class. But at this moment this is not the case for fcl-web applications, or daemon-applications which are using Lazarus-forms. Take for

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-18 Thread Graeme Geldenhuys
Zaher Dirkey wrote: Which doesn't make it correct. I Agree, but CustApp.pp belong to FPC team. Doesn't matter. There are many FPC developers amongst us. FPCUnit is another console type project which is part of FPC, but Lazarus simply slapped a GUI onto it. :-) Regards, - Graeme -

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-18 Thread Zaher Dirkey
or default initialization function Application: TApplication; begin if CustomApplication = nil then CustomApplication := TApplication.Create; Result := CustomApplication as TApplication; end; -- Zaher Dirkey -- ___ Lazarus mailing list

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-18 Thread Hans-Peter Diettrich
Joost van der Sluis schrieb: Same in Delphi I know, but can't we come up with a better design? I have service and forms application in same exe file, so i have 2 application in same instance. In a redesign we also should consider the different handling of consol applications with GUI on

Re: [Lazarus] How to use TDBLookupComboBox like with Delphi?

2009-06-18 Thread Leslie Kaye
Gabor Boros wrote: div class=moz-text-flowed style=font-family: -moz-fixedHi, In Delphi I use TDBLookupComboBox for select a row from a table. I only use three properties for this. ListSource, ListField, KeyField. And I can read the KeyField's value from the KeyValue property. I want to use

Re: [Lazarus] DBGrid columns shrunk to fit data

2009-06-18 Thread Jesus Reyes
--- El jue 18-jun-09, waldo kitty wkitt...@windstream.net escribió: De:: waldo kitty wkitt...@windstream.net Asunto: Re: [Lazarus] DBGrid columns shrunk to fit data A: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Fecha: jueves 18 de junio de 2009, 19:43 Luca Olivetti wrote: