Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I activate a popup at any position on the screen
Message
De
10/11/2000 04:52:46
Walter Meester
HoogkarspelPays-Bas
 
 
À
10/11/2000 03:12:33
Wouter Schut
Www.Selectif.Nl/Www.Seweso-Systems.Com
Andelst, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00440078
Message ID:
00440088
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform