ch_bowen
10-16-2004, 12:34 PM
I need to be able to use a button component and have the label text wrap to the next line if it is too large. For the life of me, I could not see how the button component does this. I did a little bit (code below) of a workaround, and the button will now wrap the label's text if it is larger than the width of the button. The problem I am having is centering the text and it is always left aligned.
Maybe I'm missing something.
Chris
<button width='89' height='30' datapath='section'>
<text name='content' fontstyle='bold' align='center' height='${parent.height}' multiline='true' width='${parent.width}' datapath='@label'/>
<method event='onclick'>
debug.write('do something!');
</button>
Maybe I'm missing something.
Chris
<button width='89' height='30' datapath='section'>
<text name='content' fontstyle='bold' align='center' height='${parent.height}' multiline='true' width='${parent.width}' datapath='@label'/>
<method event='onclick'>
debug.write('do something!');
</button>