Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
In Form
Message
 
To
12/11/2002 08:23:46
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Miscellaneous
Thread ID:
00721509
Message ID:
00721559
Views:
8
>Hoe can I display menus in Forms ?
>
>Silvio

For pop ups
DEFINE POPUP popMyPopMenu in Window MyFormName MARGIN RELATIVE;
                  shortcut COLOR SCHEME 2
DEFINE BAR 3 OF popMyPopMenu PROMPT 'E\<xit' skip for .f.
ON SELECTION bar 3 of popMyPopMenu do exitMyProgram with oform
To show this menu, in your form's or control's mousedown for a right button (thats the way I do it!), this code will open your pop up:
ACTIVATE popup popMyPopMenu at 5,5
DEACTIVATE MENU popMyPopMenu
Note the "at 5,5" - this positions your menu on the form - but it's not scaled to pels or pixels. Depending on form width , a row posistion of 5 could place it on bottom of the form.

This is a pop up menu - there is also a form menu. Come back when you're ready to do work with that.
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform