#1 (permalink)  
Old 07-29-2008, 04:54 PM
Junior Member
 
Join Date: Jul 2008
Posts: 7
Default wordWrap on button Label

Hi I try to add this line code in button_.as to do the label of button left go to wordWrap:


LabelUp = this["a"];
LabelUp["txt"].selectable = false;
LabelUp["txt2"].selectable = false;
LabelUp["txt"].wordWrap = true; <---- Add this
LabelUp["txt2"].wordWrap = true;
LabelUp["txt"].setTextFormat(my_fmt);
LabelUp["txt2"].setTextFormat(my_fmt2);



But it dosn't work can you help me please?


Regards

ATCOM
Reply With Quote
  #2 (permalink)  
Old 07-29-2008, 06:24 PM
OXYLUS Staff
 
Join Date: May 2008
Posts: 166
Send a message via Skype™ to Razvan
Default

Quote:
Originally Posted by ATCOM View Post
Hi I try to add this line code in button_.as to do the label of button left go to wordWrap:


LabelUp = this["a"];
LabelUp["txt"].selectable = false;
LabelUp["txt2"].selectable = false;
LabelUp["txt"].wordWrap = true; <---- Add this
LabelUp["txt2"].wordWrap = true;
LabelUp["txt"].setTextFormat(my_fmt);
LabelUp["txt2"].setTextFormat(my_fmt2);



But it dosn't work can you help me please?


Regards

ATCOM
Well... that text field must have autoSize = true and multiline = true...
I don't see why would you like to wordWrap that ? the second text field will stay in place... will not move down and you will have two text fields overlapping each other...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.