Wow, neat trick !

Here is another one. There is a little gem in
TCustomForm that allows you to set a handler for the first, an only the first OnShow event fired. It's used like this:
interface
type
TMainForm = class(TForm)
{... normal declarations ...}
public
procedure FormCreate(Sender: TObject);
procedure FirstShow(Sender: TObject);
end;
{... etc ...}
implementation
procedure TMainForm.FormCreate(Sender: TObject);
begin
AddHandlerFirstShow(FirstShow, True);
{There is a corresponding RemoveHandlerFirstShow}
end;
procedure TMainForm.FirstShow(Sender: TObject);
begin
{Do whatever the very first time the form is shown and only then.}
end;
Seems as if there should be a related
OnFirstShow event but for some reason it isn't there; this technique allows you to mimic its working.
What happened to the wiki page we talked about listing clever tricks like this ?
Dunno. I don't remember having ever talked about it.

Sound like a good idea though it would need quite some maintenance.