Re: [Lazarus] Prevent focus losing

2008-08-24 Thread Gabor Boros
Hi, Why not use CustomEdit1.SetFocus in CustomSpeedButton1.Click? Gabor Hello, situation: I have TCustomEdit and TCustomSpeedButton; when focus is in edit and I press speed button then edit loses focus. How to prevent losing focus when I press speed button?

Re: [Lazarus] Prevent focus losing

2008-08-25 Thread Gabor Boros
I tried your original problem now (earlier not) and TEdit don't loose focus. TCustomButton have a TabStop property. But TSpeedButton not because derived from TGraphicControl. Gabor This is workaround, thanks for suggestion. Another question: how is implemented focus grabbing in

Re: [Lazarus] How can I use TMemDataset

2009-01-05 Thread Gabor Boros
Provide an example for what? I don't understand you. Gabor Joost van der Sluis írta: I don't know how the Lazarus editor works, but for the rest, can you provide an example? ___ Lazarus mailing list Lazarus@lazarus.freepascal.org

Re: [Lazarus] How can I use TMemDataset

2009-01-05 Thread Gabor Boros
írta: Op maandag 05-01-2009 om 16:50 uur [tijdzone +0100], schreef Gabor Boros: Provide an example for what? I don't understand you. An example application which uses TMemDataset and apply/post/etc that does not work. Joost. ___ Lazarus

[Lazarus] How can I use TMemDataset

2009-01-05 Thread Gabor Boros
Hi, I want to use an in memory dataset and found TMemDataset. But not working very well. If defined the fields in Object Incpector the whole thing unusable. Appended records with AppendRecord or with Append/Edit/Post not inserted into dataset. If define fields at run-time with FieldDefs.Add

Re: [Lazarus] How can I use TMemDataset

2009-01-05 Thread Gabor Boros
The result is same with CreateTable and without CreateTable. Gabor Joost van der Sluis írta: My guess is that you also have to remove CreateTable? I'll look into it. Joost. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org

[Lazarus] File encoding changing silently

2009-01-06 Thread Gabor Boros
Hi, I am fighting with an ansi/unicode/utf8 problem and during this war observed a strange thing for me about file encoding. When a new project created the encoding is CP1250 (from File Setting/Encoding ) for me. Then saved the project the encoding is CP1250 in File Setting/Encoding. But when

Re: [Lazarus] File encoding changing silently

2009-01-06 Thread Gabor Boros
to CP1250 (after pressed Change file) File Settings/Encoding displays good CP1250 value but if reopen the project the File Settings/Encoding displays UTF-8 again. Gabor Mattias Gärtner írta: Zitat von Gabor Boros gaborbo...@yahoo.com: I fixed one place in r18166. Please test

Re: [Lazarus] File encoding changing silently

2009-01-06 Thread Gabor Boros
Mattias Gärtner írta: Zitat von Gabor Boros gaborbo...@yahoo.com: Are you sure? Is there a menu item with a bracket? No. ;-) Before, I said CP1250 but now I say Ansi(cp1250). When click on Ansi(cp1250) and after go to Encoding again, Ansi(cp1250) and no other encoding selected. BTW, why do

[Lazarus] Doing work in FormActivate

2009-01-13 Thread Gabor Boros
Hi, Sometimes I used OnActivate event in Delphi for do some work and e.g. show a progressbar to the user. But with Lazarus this thing not working. Form showed up after the OnActivate finished. Is it bug http://bugs.freepascal.org/view.php?id=10654 . Can anybody have a good solution for this

Re: [Lazarus] Doing work in FormActivate

2009-01-13 Thread Gabor Boros
My main problem is the form not appears on the screen under OnActivate event. How can I make a progress form, display some informations, progress bars etc. and when the job finished the user can read the information and then close the form with a button? Doug Chamberlin írta: For Windows the

Re: [Lazarus] Doing work in FormActivate

2009-01-13 Thread Gabor Boros
Hi, A simple test case: procedure TForm1.FormActivate(Sender: TObject); begin Caption:=FormatDateTime('hh:mm:ss',Now); end; With Delphi the form's caption show the first activation time and with Lazarus the caption changed when switch to other application and switch back etc.. I don't say