Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows position
Message
De
19/12/2005 02:17:19
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01078602
Message ID:
01079083
Vues:
17
Well, that was not a problem. First off all the position of the focus must be known. There is a grid, where the focus is usually been located. The exact position of a screen is not known.
Here is some of the code...
ycoord=Thisform.Pageframe1.Page1.Grid1.Top + ;
Thisform.Pageframe1.Page1.Grid1.HeaderHeight +;
((Thisform.Pageframe1.Page1.Grid1.Activerow-1) * Thisform.Pageframe1.Page1.Grid1.Rowheight)
This "ycoord" is not correct and the mouse is going to a wrong place.

After that, follows the click of a mouse.


Tapani

>Something like this:
>
>
>*Control.GotFocus
>
>MOUSE AT this.top, this.left PIXELS WINDOW (Thisform.name)
>
>
>
>
>>Hi, I need to know the exact place of the grid/form, where the focus is located. After that the mouse should be located and clicked at the same place.
>>I've tried to use OBJTOCLIENT() and many other things, but not succeeded to run it properly.
>>
>>There is usually one form and there one grid in it. The focus could be everywhere in the grid.
>>
>>Please give some hint.
>>
>>Tapani
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform