>>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.