.aMenuInfo[1,1] = "Open Client" && Prompt .aMenuInfo[1,2] = "Images\Menu\Client.Bmp" && Image .aMenuInfo[1,3] = "Opens an existing Client" && Tooltip textAny ideas?
WITH This IF .Enabled .DisplayMenu(This) ENDIF ENDWITH RETURNHere's the DisplayMenu code:
LPARAMETERS oMenuObj ** Define variables LOCAL nBar, cPrompt WITH This ** Determine top/left of the menu nRow = MROW() + 1 nCol = MCOL() - 7.5 ** Define the popup DEFINE POPUP ShortCuts FROM nRow, nCol IN SCREEN SHORTCUT ** Loop once for each menu item in the array FOR nBar = 1 TO ALEN(.aMenuInfo, 1) ** Extract the prompt and the picture cPrompt = .aMenuInfo[nBar, 1] cPicture = .aMenuInfo[nBar, 2] ** If the prompt is empty, make it a separator IF EMPTY(cPrompt) DEFINE BAR nBar OF ShortCuts PROMPT "\-" ELSE DEFINE BAR nBar OF ShortCuts PROMPT cPrompt PICTURE cPicture ENDIF ENDFOR ** Define selection actions ON SELECTION POPUP ShortCuts oMenuObj.MenuSelect() ** Show the popup ACTIVATE POPUP ShortCuts ENDWITH RETURN