Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:44 pm
by cnwsvm1 >> Tue, 26 Aug 2003 23:05:41 GMT
OK, so the example in the help file is a bit lame.
The comment suggests that if windowState is not minimized then it has just been restored, but of course there are all sorts of other resizes that could trigger the resize event.
You might prefer to put an integer property on your superclass form (previousWindowState) and code the resize event on the superclass to detect when the windowState first becomes minimised - call your own method (formMinimised) which you can reimplement in your form subclasses.
resize() updating;begin
if windowState <> previousWindowState and windowState = WindowState_Minimized then
formMinimised;
endif;
epilog
previousWindowState:=windowState;
end;