Le 7 mars 07 à 22:35 Soir, [EMAIL PROTECTED] a écrit:

> On Mar 07, 2007, at 21:17 UTC, Arnaud Nicolet wrote:
>
>>>   self.Close
>>>   self.Show
>>
>> I would like to understand why Show has no effect (and no crash) here
>> (I would expect the window to close and a new (another) instance of
>> the same window to be reopened like a distinct close and show call).
>
> Hmm, I'm not sure why you expect that.  "Self" here isn't just any old
> instance; it's this particular instance, the one that's executing this
> code.  It'd be very odd indeed for this instance to open some other
> instance and show that, just because you told this one to show itself.

Well, I expected that because, for me, using self in a Win1 refers to  
a Win1.

For example, when one says:

Win1.Close
Win1.Show

Win1 is always the same window (obviously).

I thought that, since Self is closed, Self has no other way than be  
another instance (i.e cannot remains itself since it is "no longer  
valid"). It's a bit paradoxical.

At least, I would not expect that nothing happen with:

self.close
self.show

Maybe the window open back as it was (by memorizing the window).
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to