Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Linking a textbox/control to another
Message
 
À
26/04/2000 19:37:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00363869
Message ID:
00363890
Vues:
16
>>>In texbox2
>>
>>>linkcontrol = thisform.textbox1
>>>linktop = 0
>>>linkleft = 5
>>
>>>I am looking for a function to handle in this way.
>>
>>Doing on the fly...
>>
>>texbox2.Init
>>
>>DODEFAULT() - Well I always use in this way
>>this.top = EVALUATE(this.linkcontrol).top + EVALUATE(this.linkcontrol).linktop
>>this.left = EVALUATE(this.linkcontrol).left + EVALUATE(this.linkcontrol).width + EVALUATE(this.linkcontrol).linktop
>>
>>I'm a bit losed in the EVALUATES, I think in this way shouldn't work. How must be?
>
>You're on the right track. Just leave the EVALUATE() off of the LinkTop and LinkLeft properties since they belong to your current object. Be aware that this now makes you're object instanciation order significant now.

But... do you know how must I do this?

linkcontrol = "thisform.texbox1" or linkcontrol = thisform.texbox1

EVALUATE(this.linkcontrol).top or EVALUATE(this.linkcontrol.top)

Well haven't tried, will go to test now.
Pablo Roca
Clavo Congelados, S.A. (La Coruna - Spain)
Sysop of PortalFox

Join MasFoxPro campaign
http://www.masfoxpro.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform