Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Can I add the ActiveForm(s) to the Window Menu
Message
From
25/07/2007 13:45:31
 
 
To
05/07/2007 00:02:33
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01236819
Message ID:
01243554
Views:
34
Bernard's aproach is really very simple and works perfectly.

After you run your "MPR" file, just run the lines of code below.
DEFINE PAD _msm_windo OF _MSYSMENU PROMPT "\<Window" COLOR SCHEME 3 
ON PAD _msm_windo OF _MSYSMENU ACTIVATE POPUP _mwindow
DEFINE POPUP _mwindow MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF _mwindow PROMPT "Active Windows"
PS: all credits go to Bernard.



>>I am working on a "converted" application that is part old Fox 2.5 code and part VFP9 code. We are having some issues with forms dropping behind the screen. I'd like to have active forms show up in the Window menu to allow users to reset focus. Is there anyway to use VFP's native ability to add Forms to the menu?
>>
>>Thanks, Jeff
>Easiest way - Create a quick menu. Remove all the menu items except the Windows
>Edit the Windows Menu item and delete all except the menu separator.
>Generate the MPR file.
>Open the MPR and where you see \- for the separator just add "Active Forms"
>
>Now if you run this or add it to your own menu code it will
>
>1. Show the CAPTIONS of the open forms (not the actual name of the form)
>2. It will aytomatically update itself as forms are open/closed
>3. You can activate any form by selecting it from the list.
>
>If you leave the other menu items like Cycle, etc. they too will work.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform