Yes - correct. When the window "opens" the open event fires -
however, take whatever code you have the in the open event, and put
it into the Init Method.
Use the Init method to configure the window, controls etc and when
all of that is done, call self.Show or extermally w.show
That way it will be ready for the user when it is shown.
- Jay
On Apr 27, 2006, at 10:35 AM, Jeff Edwards wrote:
This looked promising, however, the open event fires when the line
"dim w as new AddWindow" is executed.
This brings me back to the problem where my properties are not set
before the open event handler is executed.
Jeff Edwards
On 27/04/2006, at 10:05 PM, Jay Wooten wrote:
You could pass them as parameters to an Init method, then show the
window. Ignoring the open event completely.
start with the window being not visible
dim w as new AddWindow
w.Init( "update", 1, "Update Record" )
and in the Init method do the things that need to be done with the
properties, and then
self.show
or you could show it externally if you want more control
w.Show
_______________________________________________
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>
_______________________________________________
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>