Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mouse click or Windows API needed?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00593193
Message ID:
00593215
Vues:
19
>This should be simple but I've not had any success so far. In VFP 6.0 I have a standard form with two controls on it: a command button and the "Image" ActiveX OLE Control that comes with Windows 2000 (Imaging.EditCtrl.1). I'd like to be able to click on the command button and then programmatically move the mouse pointer somewhere over the imaging control and then programmatically issue a mouse click. My current code in the command button is:
>
>* - Just load an image into the imaging control
>ThisForm.Olecontrol1.Display()
>
>MOUSE AT 5,5
>MOUSE CLICK
>
>The mouse movement works just fine, however, the MOUSE CLICK code doesn't. I've tried a variety of similar approaches without any success.
>
>Do I need to use a Windows API since I'm trying to programmatically click onto an ActiveX control? If so, I'd apprecate being directed to the appropriate Windows API code I would need to use.
>
>Regards,
>Clay Angelly

Have you set the enabled property to .T.
I've had a similar problem with images not responding to mouse clicks that came down to that.

also use

mouse at 5,5 click

just playing, it seems that if you do them separately, the mouse re-appears over the button for the click.
Len Speed
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform