Hoi woter,
Asumming that nX and Xy are filled with the position (in pixels) you want to show the popup at.
nxFactor=FONTMETRIC(6,THISFORM.Fontname,THISFORM.Fontsize)/;
FONTMETRIC(6,_Screen.Fontname,_Screen.Fontsize)
nyFactor=FONTMETRIC(1,THISFORM.Fontname,THISFORM.Fontsize)/;
FONTMETRIC(1,_Screen.Fontname,_Screen.Fontsize)
ACTIVATE POPUP (cPopupname) ;
AT ((nY/FONTMETRIC(1,THISFORM.Fontname,THISFORM.Fontsize))*nyFactor,;
(nX/FONTMETRIC(6,THISFORM.Fontname,THISFORM.Fontsize))*nxFactor BAR 1
Walter,
>I have generated a menu dynamicly from some tables, but now I want to show it at the right place. If I have a tray-icon and under the right-click event I have somthing like 'ACTIVATE POPUP BlaBla' the menu apears on the wrong place, does anybody know how to specify the position where the menu apears (where the mouse is? I know the mouse position)?
>
>Thankz