View Full Version : Button Text
Rick Wallenbrock
10-13-2004, 09:35 AM
I have a long title for a button. Can I put the text on two lines and if so how?
rhosk
10-13-2004, 10:05 AM
If your button is not animated (changes state on over, for ex.), then you can use a Paragraph Object and just put your actions on this object.
longedge
10-13-2004, 11:45 AM
I can't find it at the moment but I'm sure I've seen this come up before in another thread and IIRC someone offered an innovative solution along the lines of using text files (multi line) stored in the docs folder. When required load the text to a string and then write it to the button text which when done this way will accept multiple lines - or is that what you were describing Ron?
longedge
10-13-2004, 12:24 PM
Think I must have been having another Senior Moment. Can't find a trace of this solution anywhere and as far as I can see it doesn't work anyway.
I may have been thinking about an example that I still have in my odds and sods folder which got the text from an input object and put it into the button text. Posted by someone who appears to have been 'written out of history'.
rhosk
10-13-2004, 12:33 PM
Yeah, I don't think the button label will take any form of line breaks (I could be wrong), because I just tried it too (read from text file) and for the CR's, it puts odd characters in the place of the breaks and never goes to the new line. I've used the Paragraph Object without any heartache whatsoever, but if the button has different states, though it still can be done with many actions, it would be tricky to accomplish (w/buttonGet/Set state, maybe graphic visible swaps etc....). We just don't know exactly what Rick has.
longedge
10-13-2004, 01:08 PM
Yes I've not worried about this too much in the past. There are a number of ways around it but this would be one.
Rick Wallenbrock
10-19-2004, 12:35 PM
Thanks to all for the response. Looks like the paragraph object is the best work around.
csd214
10-19-2004, 02:02 PM
Look at the attached button image!
(I'm teasing you. The button is from SUF70. Maybe it indicates that the next service release of AMS50 will have this feature?)
longedge
10-19-2004, 02:28 PM
http://www.longedge.plus.com/button.jpg in AMS5 ;)
- alright I'm teasing as well - it's a paragraph object over a button, but you do get the button functionality even though it's under the paragraph so it works just like a button in effect (well sort of you get the mouse over event)
rhosk
10-19-2004, 02:34 PM
http://www.longedge.plus.com/button.jpg in AMS5 ;)
- alright I'm teasing as well - it's a paragraph object over a button
Hey, nothing happens when I click the button :huh
:D
Intrigued
10-19-2004, 02:54 PM
Multi-line text on a button. I'm putting my vote in for it. :yes
longedge
10-19-2004, 02:57 PM
No, but when I click it an alarm sounds and 2-3 minutes later a hot cup of coffee appears :)
( either that or I hear a little voice saying, you've just had one - you can make it yourself!)
yosik
10-19-2004, 05:59 PM
Just to add my 02.
You cannot (at this point) have a multi line text on a button. However you CAN have it for a label object.
Just use the [[ notation:
myText = [[A nice
three lines
Button]];
Label.setText("myLabel", myText);
Yossi
Intrigued
10-19-2004, 06:52 PM
Here is an example .apz (project file)
yosik
10-20-2004, 02:17 AM
:)
Thanks Intrigued..
Yossi
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.