Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic menu option
Message
From
03/11/2005 09:08:08
 
 
To
03/11/2005 04:19:15
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01064856
Message ID:
01064923
Views:
29
>Hi All
>
>I have a program that constructs a top menu using DEFINE PAD's and ON PAD ... ACTIVATE POPUP commands. This all works ok. However, is there a way that each time a user clicks a particular PAD that I can first run a function which re-creates the applicable POPUP so that I can add/remove menu items from it?
>
>I tried ON SELECTION PAD ... DO command which then ACTIVATES the POPUP but this displays the POPUP menu in the top left corner of the main window underneath the menu bar and any toolbars.
DEFINE PAD thispad of thismenu .... SKIP FOR NOT REFRESHPAD('thispad','thismenu')

PROCEDURE REFRESHPAD(cPad,cMenu)
DO CASE
 CASE cPad=...
  RELEASE POPUP ...
  * REBUILD POPUP
ENDCASE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform