Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form doesn't stay on top when called from menu via keyboard.
Message
From
15/01/2001 12:39:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Form doesn't stay on top when called from menu via keyboard.
Miscellaneous
Thread ID:
00463841
Message ID:
00463841
Views:
31
I have a top level form that I call from a menu bar. In the procedure for the menu I do something like this:

*& if it is already open, bring it to the front
if vartype(oForm1) = "O"
oForm1.SHOW
else
do form form1.scx NAME oForm1 LINKED
oForm1.SHOW
endif

If I click on the Menu Bar, and then choose the item, it appears on top and works perfectly. However, if I use a keyboard shortcut to hit the Menu Bar and then choose the item, if flashes on top, and then goes behind the calling form.

I assume that this is a bug in the Menu, but I would like to have a workaround.
Any suggestions?

Clayton Hall
DataPath Inc.
chall@dpath.com
Next
Reply
Map
View

Click here to load this message in the networking platform