Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global position of control in _Screen/Toplevel form
Message
From
06/06/2005 23:32:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/06/2005 23:26:25
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01020751
Message ID:
01020754
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
The individual forms can be contained in the top-level form, but you can get information about this with the .Top and .Left properties of the form. I am not aware of the possibility of more levels of form-contains-form containership.

The offset for the remainder of the path can be obtained with objtoclient().

>I have a container with a textbox which I may need to MOUSE CLICK AT for certain keyboard-centric users. Depending on the application, this container may be in _SCREEN, a top level form, a form within a top level form, a toolbar, or even a nested pageframe in one of the above containers.
>
>Is there a simple way for me to determine the global coordinates of my textbox so I can supply the proper row, column coordinates for the MOUSE CLICK command to click on this textbox regardless of where this textbox is placed?
>
>I'm aware of OBJTOCLIENT but this is relative to the current form which could be in another form, etc.
>
>Thank you,
>
>Malcolm
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform