Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I activate a popup at any position on the screen
Message
From
10/11/2000 04:52:46
Walter Meester
HoogkarspelNetherlands
 
 
To
10/11/2000 03:12:33
Wouter Schut
Www.Selectif.Nl/Www.Seweso-Systems.Com
Andelst, Netherlands
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00440078
Message ID:
00440088
Views:
27
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform