[Closed] ampersand as part of button label
Any suggestions on having an ampersand (“&”) in a button label… like an “M&M” button? Many thanks.
rollout unnamedRollout "Untitled" width:158 height:104
(
button btn_MM "M&M" pos:[14,25] width:125 height:35
)
createDialog unnamedRollout
works fine
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
@ is non printing character. Please use \x40 for it.
example:
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?
there is this nice code on maxscript reference under String Literals topic which printout all of them.
char=“0123456789abcdef”
for i=1 to char.count do
for j=1 to char.count do
(
s=execute(“”\x”+char[i]+char[j]+”””)
format “%% %
” char[i] char[j] s
)
cheers
[color=white][/color]