Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object below object
Message
From
24/12/2009 13:35:08
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
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:
01440569
Views:
53
>>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.
>
Neat! If there's a flicker, you may set thisform.lockscreen=.t. before and reset it after.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform