[lazarus] You can get onresize BEFORE onshow...
Tony
tony at maro.net
Sat Sep 27 13:55:21 EDT 2003
Blew my mind, but this explains a random bug that has bothered me for
almost a year.
In GTK with certain form positionings defined, a form resize event _can_
(not always) be triggered before the form's onshow, but after the oncreate.
Since I was creating components in the onshow and then using them in
onresize this kind of caused me problems. Initially I did this because
of a bug in Lazarus which has long-since been fixed, but never moved the
creation code.
Specifically on _some_ systems this will happen every time if the form's
position is set to "poscreencenter" and on other systems happens
everytime if set to "podesktopcenter" but generally if it does it on one
position type it does NOT do it on the other.
Not really a bug, I guess, just a "that's odd".
--
Tony Maro
Systems Consultant
The Maro Group
(256) 337-5759
http://www.maro.net/
More information about the Lazarus
mailing list