View Full Version : How can I put two text rows on one button? It is possible?
OctCauMay
01-05-2007, 06:33 AM
How can I put two text rows on one button? It is possible?:huh
bobbie
01-05-2007, 08:14 AM
Don't think you can.
Lorne
01-05-2007, 09:58 AM
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.).
OctCauMay
01-05-2007, 10:31 AM
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
Lorne
01-05-2007, 11:10 AM
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.
holtgrewe
01-05-2007, 11:35 AM
Lorne
Great technique. Thanks for that. I can certainly use it. :yes
OctCauMay
01-05-2007, 12:41 PM
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!
mwreyf1
01-05-2007, 01:59 PM
Try this...
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);
OctCauMay
01-05-2007, 03:54 PM
Tanks very much. It works.:yes
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.