Degrees Symbol
TurnipTruck
Junior Member
You know the degrees symbol that goes after temperatures??
How can I get that into variable text string for G4 panels?
Thanks.
How can I get that into variable text string for G4 panels?
Thanks.
Comments
-
Although I haven't done it I believe you need to send unicode commands and in unicode hex c2 b0 is the degree sign.
Look at the unicode commands WC_DECODE, WC_ENCODE and you can just covert existing ascii to unicode or use SEND_COMMAND dvTY,??^UNI-1,0,?,cString? just to send unicode directly.
To date I've only modified some exisitng code that used these commands and never really got into the unicode itself. They do open the door to alot of symbols/languages that are not supported by ascii. -
Although I haven't done it I believe you need to send unicode commands and in unicode hex c2 b0 is the degree sign.
Look at the unicode commands WC_DECODE, WC_ENCODE and you can just covert existing ascii to unicode or use SEND_COMMAND dvTY,??^UNI-1,0,?,cString? just to send unicode directly.
To date I've only modified some exisitng code that used these commands and never really got into the unicode itself. They do open the door to alot of symbols/languages that are not supported by ascii.
Thanks Vining. I got it. I added a "$B0" to my text string and it worked.
Cheers. -
TurnipTruck wrote: »Thanks Vining. I got it. I added a "$B0" to my text string and it worked.
Cheers.
You can use almost all these symbols like degrees, pound (UK currency) etc...
A great way to find out what they are is to use the CHAR map that is part of windows. call it up, it'll give you the hex char number, send it raw to the panel and it works fine. -
A decimal 171 (ie., "'70 ',171" - note the single quotes do not enclose the 171) works in most cases too ... but keep in mind, it's font specific ... the font needs to have the actual glyph, after all.
-
DHawthorne wrote: »A decimal 171 (ie., "'70 ',171" - note the single quotes do not enclose the 171) works in most cases too ... but keep in mind, it's font specific ... the font needs to have the actual glyph, after all.
Can't you just append ° to the end of your string?
ie:
char cnDegree = '°'
"itoa(level.value),cnDegree"
Always worked for me. You guys always do things the hard way.
Paul -
Can't you just append ° to the end of your string?
ie:
char cnDegree = '°'
"itoa(level.value),cnDegree"
Always worked for me. You guys always do things the hard way.
Paul
"itoa(level.value),$B0"
is harder than
char cnDegree = '°'
"itoa(level.value),cnDegree"
???
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums
