On Jan 13, 2007, at 7:39 AM, Terry Ford wrote:

In your case I would do the following fixes:

1. In the application's open event, change Splash.ShowModal to Splash.Show and remove Window1.Show.

2. Add Window1.Show to the close event of the Splash window.

3. Change Window1's Pushbutton Action event to Window1.Show so the keydown event of the Splash window is enabled.

It doesn't matter what the frame of the window is (Document or Modal).

After some further thought:

1. Interrupting the open event is still bad.

2. As the code in the Pushbutton appears to exhibit similar problems, it may just be a fact that ShowModal intentionally or unintentionally does not enable the Keydown event of the opening window. Overriding this in the Open event of the window *may* be necessary.

3. Floating windows exhibit different characteristics than document or modal windows and pose an entirely different set of problems that can be worked around.

-Terry


_______________________________________________
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>

Reply via email to