Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object below object
Message
De
24/12/2009 13:35:08
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
24/12/2009 12:05:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01440541
Message ID:
01440569
Vues:
52
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform