Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 15 of 15

Thread: Button Text

  1. #1
    Join Date
    Oct 2004
    Posts
    14

    Button Text

    I have a long title for a button. Can I put the text on two lines and if so how?

  2. #2
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    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.

  3. #3
    Join Date
    Aug 2003
    Posts
    2,427
    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?

  4. #4
    Join Date
    Aug 2003
    Posts
    2,427
    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'.

  5. #5
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    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.

  6. #6
    Join Date
    Aug 2003
    Posts
    2,427
    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.

  7. #7
    Join Date
    Oct 2004
    Posts
    14

    Button Title

    Thanks to all for the response. Looks like the paragraph object is the best work around.

  8. #8
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    939
    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?)

  9. #9
    Join Date
    Aug 2003
    Posts
    2,427
    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.

  10. #10
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Quote Originally Posted by longedge
    in AMS5


    - alright I'm teasing as well - it's a paragraph object over a button
    Hey, nothing happens when I click the button


  11. #11
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Multi-line text on a button. I'm putting my vote in for it.
    Intrigued

  12. #12
    Join Date
    Aug 2003
    Posts
    2,427
    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.

  13. #13
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    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

  14. #14
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Here is an example .apz (project file)
    Attached Files
    Intrigued

  15. #15
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843

    Thanks Intrigued..
    Yossi

Similar Threads

  1. Noob ? for toggling text on a button
    By Robfr in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 06-04-2005, 02:39 PM
  2. Example: Loading Paragraph Text Using a Timer
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 7
    Last Post: 11-25-2004, 05:10 PM
  3. Having Button Text Stay A Certain Color
    By webnc1 in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 10-04-2004, 03:37 PM
  4. Example: Creating an on/off button to toggle background audio
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 07-10-2004, 02:54 PM
  5. Button with text
    By big0gie in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 02-09-2004, 11:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts