No Lable Required for Choice Option..?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
topcat888
Posts: 44
Joined: Sat Jan 02, 2010 8:10 pm

No Lable Required for Choice Option..?

Post by topcat888 » Tue Jan 05, 2010 6:45 pm

Hi,

I really would like to have no 'Label' on an option so that it is a clean look, but it is forcing me to have something (when I close it will place the first choice as the label if I leave it blank)...

Is there a way to do this or something that I can put in there that will not show..?

Thanks
TC
Last edited by topcat888 on Tue Jan 05, 2010 7:44 pm, edited 1 time in total.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: No Lable Required for Choice Option..?

Post by Klaus » Tue Jan 05, 2010 7:44 pm

Hi TC

put a simple SPACE into the button and you are done. Dirty, cheap but necessary trick :D
And don't forget to take this into account in your "menupick" handler for that option button!


Best

Klaus

topcat888
Posts: 44
Joined: Sat Jan 02, 2010 8:10 pm

Re: No Lable Required for Choice Option..?

Post by topcat888 » Tue Jan 05, 2010 8:02 pm

how easy is that, thanks..!

But how do I change the menupick, at the moment its is:

set the label of me to pItemName

but now it has no name just a space..?

Thanks
TC

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: No Lable Required for Choice Option..?

Post by Klaus » Tue Jan 05, 2010 8:14 pm

Hi TF,

you are mixing the name of an menu/option button with its content!

Check the inspector for your button:
There you have "name" and a bit lower the "text" property, which is what will be displayed when you click that menu.
So just add a SPACE in the TEXT field and that's it!

Remember that YOU will have to script the actions that will happen when the user selects one of the options of that button :D


Best

Klaus

topcat888
Posts: 44
Joined: Sat Jan 02, 2010 8:10 pm

Re: No Lable Required for Choice Option..?

Post by topcat888 » Tue Jan 05, 2010 8:19 pm

yes.! Thank you.

Post Reply