I have a long title for a button. Can I put the text on two lines and if so how?
Professional Software Development Tools
I have a long title for a button. Can I put the text on two lines and if so how?
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.
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?
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'.
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.
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.
Thanks to all for the response. Looks like the paragraph object is the best work around.
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?)
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)
Last edited by longedge; 10-19-2004 at 01:39 PM.
Hey, nothing happens when I click the buttonOriginally Posted by longedge
![]()
Multi-line text on a button. I'm putting my vote in for it.![]()
Intrigued
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!)
Last edited by longedge; 10-19-2004 at 02:00 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
Here is an example .apz (project file)
Intrigued
![]()
Thanks Intrigued..
Yossi