View Full Version : ampersand as part of button label
Any suggestions on having an ampersand ("&") in a button label... like an "M&M" button? Many thanks.
03-31-2008, 09:59 PM
rollout unnamedRollout "Untitled" width:158 height:104
button btn_MM "M&M" pos:[14,25] width:125 height:35
04-01-2008, 12:01 AM
as aaaaCHoooo mentioned, should be fine on buttons.
On labels (and possibly some other controls), use '&&' instead; a single '&' gets interpreted as being a (useless, as it can't actually be invoked as such) hotkey tag otherwise
Aha! Thanks, Richard. That was driving me crazy.
04-01-2008, 10:34 AM
@ is non printing character. Please use \x40 for it.
label lbl1 "\x40" pos:[30,21] width:93 height:45
Ah. Thank you, Susanta. I take there's list of these somewhere in the MAXScript Reference?
04-01-2008, 10:43 AM
there is this nice code on maxscript reference under String Literals topic which printout all of them.
for i=1 to char.count do
for j=1 to char.count do
format "%% %\n" char[i] char[j] s
Sweet! Thank you. :thumbsup:
04-01-2008, 11:29 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.