Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving the mouse pointer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00362899
Message ID:
00363956
Vues:
34
Two things here Roi,

First, there is a WINDOW clause in the MOUSE command where you can specify the window to work in.

Second I believe that PIXELS only works if the ScaleMode of the form is in Pixels

Rick

>Hi David,
>
>Thanks, I looked at objtoclient() but I'm not sure what to do with it. I can't figure out how to get the mouse pointer position from it.
>
>Am I missing something? I just need the mouse position in pixels.
>
>>Roi,
>>
>>Look at objtoclient()
>>
>>>I'm trying to move the mouse pointer over a wee bit when the user clicks a node in a treeview. I put the following in the nodeclick event:
>>>
AMOUSEOBJ(aMouseInfo, 1)
>>>nCurX =  aMouseInfo[ 3 ]
>>>nCurY =  aMouseInfo[ 4 ]
>>>MOUSE AT nCurX + 10, nCurY + 10 pixels
>>>
It moves the the pointer only it moves it relative to the vfp screen and I want to move it relative to it's current position on a form. BTW, the forms ShowWindow type is 2-As Top Level.
>>>
>>>The reason I'm doing this is to move the pointer over a pop-menu that is called by rightclicking a node. If the user doesn't move over the pointer over the menu it won't go away. I figured I just force it to move over it.
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform