Le 7 mars 07 à 21:22 Soir, [EMAIL PROTECTED] a écrit: > On Mar 07, 2007, at 19:36 UTC, Björn_Eiríksson wrote: > >> You call show again on the window. > > I wouldn't expect that to work. If it happens to work, do you have > reason to suppose that it's supported? Show is intended to reveal a > window that's already (and still) open, but not yet visible (either > because it was opened with .visible=False, or because you called Hide > on it). Or such is my understanding.
Or you can call .Show before the window is open, as in MyWin1.show. That will open the window if it has not yet been. > Indeed, a quick test seems to indicate that this doesn't even > happen to > work. Put a button on a window, with this code in its Action event: > > self.Close > self.Show > > If what you're describing is real, then this should cause the > window to > close and reopen, right? But for me, it just closes -- the .Show has > no apparent effect. (But it doesn't crash either, which is good!) 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). That would explain behaviours of RB I never have understood (about the .Show method). _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
