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 oformTo 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 popMyPopMenuNote 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.