>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?
Hello, Clayton.
I think this is a Windows behavior. Most surely, launching the form trough clicking somehow leaves the top-level form as the focus application, while doing it by keyboard not.
I personally try to avoid mixing up top-level and desktop component as they are quite different beasts. If you have the menu on a top-level form, and not the desktop, then maybe you can solve the problem setting the second form as In-Top-Level form (not AT-top), then it would be a child of the main one.
I hope to be helpful. Ignore me if not.