On Nov 29, 2007, at 8:38 PM, James Sentman wrote:
>
> The first event I noticed was wrong was that my windows actually paint
> themselves before my open event fires. Shouldn't the open event fire
> before the first paint event? I"m fairly certain that is what I"m
> seeing here and that is just wrong. I will explore the work around of
> starting with an invisible window and then setting it to visible at
James:
All the controls get their Open events before the window's Open
Event, starting
with Control.index = 0 and working up the window's control array.
To force my controls and other Class properties to initialize before
the window's Open event,
I put a call to my own initialization method in the Open event of the
lowest order control....i.e. Control.Index = 0
Then, everything gets set up before the window takes over.....For
example, if you have a TabPanel that
is index = 0 in the control list, then...
TabPanel.Open
initWindow
In my initWindow method, I would call a method like :
repositionControls, which puts the controls where
I want them based on the window's dimensions. This method can also
be called
>from the window's Resize/Resizing events, keeping your control
positioning code in one place for easier
maintenance.
Hope this is of some relevance.....
Mark Levinson
Hutchinson, KS
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|