Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MouseDown xCoord and controls position in the child form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01281310
Message ID:
01281311
Vues:
11
This message has been marked as the solution to the initial question of the thread.
>Hi all
>
>I have a form which has a custom button control based on the container class. The contained class MouseDown is BINDEVENT() to the container's MouseDown. Now this control is in two parts I want to know which area was click by the user and I want to adapt execution of the code in the container.MouseDown(). It seems the x/yCoord sent as a parameter to the MouseDown() is in terms of the whole screen.
>
>How can I convert the Top and Left of the container to screen
check function OBJTOCLIENT()
+ Left/Top of form
+ for Top = SYSMETRIC(9) or SYSMETRIC(34) + SYSMETRIC(4) OR SYSMETRIC(11) OR SYSMETRIC(13)
+ for Left = SYSMETRIC(3) OR SYSMETRIC(10) OR SYSMETRIC(12)

> or x/yCoord to the forms Top / Left?
check function OBJTOCLIENT()

>
>Please advise.
>
>Thanks.

MartinaJ
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform