gettingstarted
[Top] [All Lists]

Re: Window.Show suppresses Open event?

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Window.Show suppresses Open event?
From: Charles Ross <chivalry at mac dot com>
Date: Sat, 26 Nov 2005 12:58:11 -0800
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <36E1F360-7C95-4ACC-8947-9FC7D63D7E10 at mac dot com> <FAC2837F-5EB9-11DA-B8C1-000393C6C4C4 at hit dot net>
Jack,

Having said that, your msgbox should have appeared at some time, unless you are using a Constructor without calling Super.Window() in the Constructor.

That's the reason why. The database has dbWindow as a property and initializes it with:

self.dbWindow = new MLDBWindow(self)

so that the owner property of the window can be set to the database.

The only line in the Contructor method is:

Sub Constructor db as MLDatabase
  self.owner = db
end Sub

From what I understand you saying, adding a line to the Constructor that calls the super's Constructor would cause the Open event to fire in the window and in the control objects within the window. I changed my MLDBWindow.Constructor method to read:

Sub Constructor db as MLDatabase
  self.owner = db
  super.Window
end Sub

I then placed a msgBox call within the Open handler of the listbox and it did fire. Thank you very much for the help.

Thanks,
Chuck
_______________________________________________
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>

<Prev in Thread] Current Thread [Next in Thread>