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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • OctCauMay
    Forum Member
    • Oct 2006
    • 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?
  • bobbie
    Forum Member
    • Feb 2005
    • 770

    #2
    Don't think you can.

    Comment

    • Lorne
      Indigo Rose Staff Member
      • Feb 2001
      • 2729

      #3
      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 ]]

      Comment

      • OctCauMay
        Forum Member
        • Oct 2006
        • 6

        #4
        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

        Comment

        • Lorne
          Indigo Rose Staff Member
          • Feb 2001
          • 2729

          #5
          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 ]]

          Comment

          • holtgrewe
            Indigo Rose Customer
            • Jul 2002
            • 779

            #6
            Lorne

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

            Comment

            • OctCauMay
              Forum Member
              • Oct 2006
              • 6

              #7
              Yes I have a lazy computer :lol

              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!

              Comment

              • mwreyf1
                Indigo Rose Customer
                • Aug 2004
                • 417

                #8
                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, 01:03 PM.

                Comment

                • OctCauMay
                  Forum Member
                  • Oct 2006
                  • 6

                  #9
                  Tanks very much. It works.:yes

                  Comment

                  Working...
                  X