Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting pixel coordinates to row/column coordinates
Message
De
07/01/2008 07:42:16
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
07/01/2008 04:19:50
Herb Ellerbock
Customized Computer Systems
Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01279858
Message ID:
01279883
Vues:
12
>Hi All,
>
>Can someone tell me how to convert pixel coordinates to the corresponding nRow and nColumn coordinates in a "DEFINE POPUP FROM nRow, nColumn" command?
>
>TIA.
* BaseForm methods
Procedure YToRow(tnY)
RETURN m.tnY*WROWS()/this.ViewPortHeight
endproc

Procedure XToCol(tnX)
RETURN m.tnX*WCOLS()/this.ViewPortWidth
endproc
For _screen you can use _screen.ViewPort*.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform