Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exact control coordinates
Message
From
12/02/1997 11:37:19
 
 
To
12/02/1997 10:15:40
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00020182
Message ID:
00020204
Views:
36
>I've built a control class, and I need to I need to know the exact coordinates of the control with respect to the form it is placed on. The only time when this is a problem, is when the control is placed in a container class, and then an object of that class is placed on the form. That would require a "This.Parent.Left" and "This.Parent.Top". Since I don't know how many containers there might be above my control, is there a way to just get it's position relative to the form it is on?
>
>That question is as clear as mud huh? Any help?
>Joe


Use a loop and keep looping until the base class of the object is a form.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform