Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object below object
Message
From
24/12/2009 12:05:12
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01440541
Message ID:
01440543
Views:
55
>Hi all,
>
>Who knows a way to get a reference to an object below another object? In my case I have an object on top of a gridheader and want to get a reference to the header object.
>
>I have tried a combination of amouseobj and sys(1270), but it fails so far due to the fact that both functions use different reference systems for x and y. The trick I had in mind was first to get x and y of the clicked upper object with amouseobj. And then get the object reference of the currentcontrol of the column by calling sys(1270,x,y+30). And then going to the header of that column. However, the x and y values are not compatible and so far I can't discover their relationship.

How smart I am! :-)

Here is the trick: Temporarilly make the upper object invisible as in this example:
this.visible = .f.
loX = sys( 1270 )
wait window m.loX.name nowait
this.visible = .t.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform