Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2006
    Posts
    6

    How can I put two text rows on one button? It is possible?

    How can I put two text rows on one button? It is possible?

  2. #2
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770
    Don't think you can.

  3. #3
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    Use a button with no text, and place a Paragraph object on top of it. You can put as many lines as you want that way.

    Configure the paragraph object like so:
    • Set both of the paragraph object's scroll bars to "Off."
    • Set the Disabled state color to the color you want for the text.
    • On the Attributes tab, turn off the "Enabled" option.


    Disabling the Paragraph object allows the button underneath it to still respond to mouse events (On Click/On Enter/etc.).
    --[[ Indigo Rose Software Developer ]]

  4. #4
    Join Date
    Oct 2006
    Posts
    6
    Thanks, but the problem is that I want to move the button (which allow me to move an image and text at the same time) and by using your idea two objects will be moved (the button and the paragraph) instead of one and the computer will work slowly

  5. #5
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    You want to move the objects at run time, via script?

    I doubt you'll notice a difference between two objects or one to be honest unless you have an unusually slow computer.
    --[[ Indigo Rose Software Developer ]]

  6. #6
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Lorne

    Great technique. Thanks for that. I can certainly use it.

  7. #7
    Join Date
    Oct 2006
    Posts
    6
    Yes I have a lazy computer

    My desire is to appear a button with text wich contains 3 rows and on each row to be written the informations of an .ogg

    Ok, I' ll use your sugesstion but tell me please how to take over the name of the artist the title and the album on different rows

    To be more clear i give you a part of my program code:


    tags = Audio.GetOggTags(CHANNEL_BACKGROUND);
    if (tags ~= nil) then
    albumtitle = tags.TITLE;
    artist = tags.ARTIST;
    album = tags.ALBUM;
    end

    Paragraph.SetText("Audio", albumtitle..artist..album);


    Tanks for the tip!

  8. #8
    Join Date
    Aug 2004
    Location
    Somewhere in Texas, USA
    Posts
    417
    Try this...

    Code:
    tags = Audio.GetOggTags(CHANNEL_BACKGROUND);
    if (tags ~= nil) then
    albumtitle = tags.TITLE;
    artist = tags.ARTIST;
    album = tags.ALBUM;
    end
    
    Paragraph.SetText("Audio", albumtitle.."\r\n"..artist.."\r\n"..album);
    Last edited by mwreyf1; 01-05-2007 at 01:03 PM.

  9. #9
    Join Date
    Oct 2006
    Posts
    6
    Tanks very much. It works.

Similar Threads

  1. Button Text
    By critter in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 06-13-2006, 05:12 AM
  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