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
Jay Wooten, President
Visual Dynamics, Inc. - Authorized Apple Specialist
www.visdyninc.com
321-773-7788 w
321-773-9604 f
----------------
Everything is easier on a Mac!
----------------
Mac OS 10.4.6
On Apr 27, 2006, at 9:57 AM, Jeff Edwards wrote:
I have defined some properties for a window.
I want to set them before the Open event handler from another
objects script.
for example this is called from the double click event handler in a
list box of another window:
AddWindow.mode = "update"
AddWindow.ID = 1
AddWIndow.title = "Update Record"
AddWindow.Show
but as soon as the code "AddWindow.mode = "update" is executed,
the Open event for the object "AddWindow" is invoked.
This means that I do not have the properties set for when the Open
Event handler is executed.
How can I overcome this problem so that the properties I set can be
used?
Thanks in advance
Jeff Edwards
_______________________________________________
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>