Half (1/2) character
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Half (1/2) character
What is the easiest way to get a 1/2 character to display in a field.
Ive tried numToChar(189), but that gives a different symbol on the mac, i need the code to put a 1/2 character instead of 0.5, 1.5 etc but it has to work on both mac and windows.
Any ideas?
Andy
Ive tried numToChar(189), but that gives a different symbol on the mac, i need the code to put a 1/2 character instead of 0.5, 1.5 etc but it has to work on both mac and windows.
Any ideas?
Andy
Hi Andy,
Looking at the ASCII table for Mac, I don't see a 1/2 sign. It seem you
a) need a special font, which has the sign
b) or need to use unicode and find a glyph showing the symbol you want
c) or need to use 1/2 and set the textshift of these characters to -8 or something
d) or need to use a picture (simple but ugly)
e) or you simply write 1/2
Best,
Mark
Looking at the ASCII table for Mac, I don't see a 1/2 sign. It seem you
a) need a special font, which has the sign
b) or need to use unicode and find a glyph showing the symbol you want
c) or need to use 1/2 and set the textshift of these characters to -8 or something
d) or need to use a picture (simple but ugly)
e) or you simply write 1/2
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Thanks Mark,
I think Ill stick with 1/2 but out of interest you say a picture would be simple but ugly, is it possible to position a picture inline with text fairly easily as I would love to be able to add odd pictures in text (like a graphic 'x' so a user could click the x to delete a line) but not figured out how to do it.
I think Ill stick with 1/2 but out of interest you say a picture would be simple but ugly, is it possible to position a picture inline with text fairly easily as I would love to be able to add odd pictures in text (like a graphic 'x' so a user could click the x to delete a line) but not figured out how to do it.
Hi Andy and Malte,
Malte is right, but you probably still have to fiddle with the textShift to get the picture positioned correctly.
Best,
Mark
Malte is right, but you probably still have to fiddle with the textShift to get the picture positioned correctly.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode