On Mar 7, 2007, at 2:35 PM, [EMAIL PROTECTED] 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).
If we take this example OUT of the actual Window instance and put it
into a module, the result is that the WIndow "will" reappear, but
it's not the same instance of the window that was previously closed.
The result is that you've actually created a NEW instance of that
window.
New Project
Set default window to None in the App Class
On Window1 set:
Window1.Title = "Hello, World"
In your App.Open event:
Window1.Title = "I'm not ready yet ..."
App.DoEvents(2000) // Pause ~2 seconds
Window1.Close
App.DoEvents(2000) // Pause ~2 seconds
Window1.Show
When the window is redisplayed, the title will return to the default
"Hello, World".
Tim
--
Tim Jones
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>