On Apr 22, 2006, at 2:50 PM, Charles Ross wrote:
Is it documented some place what order events are called in when a Window is created? For instance, I had put some code into the Open event of the Window, as well as the Open event of a number of controls within the Window, and I found out that apparently the controls' Open events are called before the Window's Open event. I move the code in Window.Open to Window.Activate, and it worked, so apparently Window.Activate is called before the controls.Open. Is this precise order documented somewhere?
Not officially as it; a) is subject to change and b) happens differently on different platforms.
It is safest to *not* depend on the order of opening events in your code assignments. Also don't forget that the Activate event happens every time a particular window becomes frontmost.
A *very unofficial* outline of Opening events is contained in Matt Neuburg's RBTDG. It is also very dated. There are also ways to work around this order limitation by using a timer.
Terry _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
