How can I put two text rows on one button? It is possible?![]()
Professional Software Development Tools
How can I put two text rows on one button? It is possible?![]()
Don't think you can.
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 ]]
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
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 ]]
Lorne
Great technique. Thanks for that. I can certainly use it.![]()
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!
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.
Tanks very much. It works.![]()