Adding Special Characters to Button Labels
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Adding Special Characters to Button Labels
I'm creating a simple calculator. On the interface, I'm creating the buttons with standard labels on each. Can someone tell me how to add special characters to the button label like toggle and division signs? I'm using LiveCode version 9.0.0. Thanks Keith
Re: Adding Special Characters to Button Labels
The label is just a label, you can put any character you want there. Are you talking about just a regular calculator division sign ( / ), or are you talking about the written division sign ( ÷ )? If the latter, it would be a character code, how you set it is going to depend.
If you go with numToChar (ascii) it is going to depend on which character set your using. If you go unicode, not so much. In either case, in code you would write something like -
probably in an openCard handler.
I should probably add that it would be a ton easier to just use a picture as the buttons icon
If you go with numToChar (ascii) it is going to depend on which character set your using. If you go unicode, not so much. In either case, in code you would write something like -
Code: Select all
set the label of button "YourButtonName" to numToChar(xxx)
I should probably add that it would be a ton easier to just use a picture as the buttons icon
Re: Adding Special Characters to Button Labels
bogs: Thanks for the reply. Very helpful. Keith