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