>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 ...
ENDCASE