Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form doesn't stay on top when called from menu via keybo
Message
From
15/01/2001 13:24:24
 
 
To
15/01/2001 12:39:18
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00463841
Message ID:
00463859
Views:
13
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform