List Info

Thread: How to recenter a label if the caption changes




How to recenter a label if the caption changes
user name
2006-04-21 16:35:03
  I am dynamically creating a panel and a label above and beneath the
>   panel. The labels look fine with static text. My problem is when I
> change
>   the caption of the label if does not recenter.
>
>  ; I need the ability to recenter the text if the text changes.

The label has an alignment property so you can tell the caption to be
left-, right-, or center-aligned.

Then turn off AutoSize to prevent the label from changing its size when
its caption changes.

--
Rob


How to recenter a label if the caption changes
user name
2006-04-21 17:44:35
  to assist each other.
  
  Thanks again...
  ;
  r/Kurt..

Rob Kennedy <rkennedycs.wisc.edu> wrote:
&nbsp; Curtis cloud wrote:
&gt; &nbsp; I am dynamically creating a panel and a label above and beneath the
>&nbsp;  panel. The labels look fine with static text. My problem is when I
> change
&gt; &nbsp; the caption of the label if does not recenter.
>
>  ; I need the ability to recenter the text if the text changes.

The label has an alignment property so you can tell the caption to be
left-, right-, or center-aligned.

Then turn off AutoSize to prevent the label from changing its size when
its caption changes.

--
Rob




-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: delphi-en-unsubscribe@yahoogroups.com


&nbsp; &nbsp;
---------------------------------
  YAHOO! GROUPS LINKS

   ;
 &nbsp;  Visit your group "delphi-en" on the web.
&nbsp; &nbsp;
 &nbsp;  To unsubscribe from this group, send an email to:
delphi-en-unsubscribe@yahoogroups.com
&nbsp; &nbsp;
 &nbsp;  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

   ;
---------------------------------
 



&nbsp; &nbsp;    &nbsp; &nbsp; 
---------------------------------
Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.

[Non-text portions of this message have been removed]

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )