Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My labels have a mind of their own
Message
De
26/08/2006 12:04:46
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
26/08/2006 03:18:00
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
Divers
Thread ID:
01148417
Message ID:
01148821
Vues:
16
>>Could this work as a label.caption_assign method? Instead of "changed text", have the m.vNewValue, which is passed as a parameter.
>
>mmmm .....
>But, why we have to do something that VFP does alone?
>
>
>PUBLIC oform1
>
>oform1=NEWOBJECT("form1")
>oform1.Show
>
>
>DEFINE CLASS form1 AS form
>
>	AutoCenter = .T.
>	Caption = "Form1"
>
>	ADD OBJECT lb AS label WITH ;
>		 Left = 109 ;
>		,Top = 65;
>		,Width = 40;
>		,Caption = "Click";
>		,Alignment = 1;
>		,AutoSize = .T.
>		
>
>
>	ADD OBJECT text1 AS textbox WITH ;
>		Height = 24, ;
>		Left = 157, ;
>		Top = 61, ;
>		Width = 111
>
>
>	PROCEDURE lb.Click
>		this.Caption = this.Caption + 'a'
>		ACTIVATE SCREEN
>   * Right value into the graphic buffer still fixed !
>		? this.Left+this.Width ,OBJTOCLIENT(this,2)+OBJTOCLIENT(this,3)
>	ENDPROC
>
>ENDDEFINE
>
Wow... how did you dig this? And since this works as it does, why are we having this thread in the first place? Mike should have seen the labels behaving properly (at least visually - the .left doesn't seem to change while the left edge of the label actually moves) and wouldn't complain. So, I wonder what could be different from your example, that created the problem we're talking about.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform