Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global position of control in _Screen/Toplevel form
Message
De
07/06/2005 08:27:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
07/06/2005 00:05:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01020751
Message ID:
01020843
Vues:
19
>Hi Hilmar,
>
>I just noticed that the MOUSE AT command supports the ability to specify a form/window to be clicked on so one just needs to know to the mouse coordinates relative to the current _Screen, toplevel form, toplevel child form, or tooblar. As you pointed out, OBJTOCLIENT is sufficient for determining coordinates relative to a control's parent form container.

OK, glad it works.

But, looking back at your message, I am thinking the following: I never saw the need to use the MOUSE command, especially since the existence of VFP. For example, to activate a CommandButton, you can invoke ThisForm.CmdStart.Click(), and for a TextBox, you can put the cursor into it with .SetFocus(), and even change the cursor position with the .SelStart property.

In summary, perhaps other alternatives are better than the MOUSE command.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform