On Mar 14, 2006, at 11:11 AM, Harrie Westphal wrote:
Yes, it crashes shortly after opening as you have written the code.
However, if I change the line
w2.ShowModalWithin self
to
w2.ShowModalWithin Window1
It works fine and here is why I think your code is in error. Look
at the defninition of self in the online language reference. The
last section reads as follows:
"When Self is called within the method of a class, Self will be a
reference to the instance of the class in use. This is usually not
necessary since, as stated, in the absence of an object identifier,
the parent or super object is assumed."
So I don't believe that "self" is referring to the window in this
case.
Hello:
Thank you for your time in trying it out.
As far as I know, "Self" inside any window's method or event refers
to the windows itself. I'll be in trouble to use 'Window1' instead of
'Self' if multiple instances of Window1 are open.
The workaround had been to take the contextualmenu outside the
container control on Window1, which is not what I want because I'm
creating some kind of custom control with container controls.
Regards,
Giuseppe Farese
_______________________________________________
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>