[Lazarus] FYI: qt is going to be LGPL

Luca Olivetti luca at wetron.es
Wed Jan 14 11:19:20 CET 2009


> For Windows the OnActivate event should fire every time the window is 
> re-activated as you describe. This is as designed. If you want to 
> process something only once when the window is first activated try the 
> OnShow event.
>   
However, this doesn't conform with the Delphi behaviour
> If you must run some code only once but still within the OnActivate 
> handler, the best way I have found is to add a field to the TForm that 
> indicates the OnActivate has been run once. I usually use FActivated: 
> Boolean for this. Then in the OnActivate handler put:
>
>   
Easier is just to write OnActivate:=nil;


Benito



More information about the Lazarus mailing list