> 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 _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
