10-07-2009 05:46 AM
Hi,
i am beginner to Labwindows.I am programming a GUI in which i have to display some symbols in the display.
I would like to know how I can include this symbols(for ex:sun symbol etc)
I even want to display two down arrows in BC15 font.I would like to know what is the value i have to update in text box for displaying this arrows
Thanks & Regards
Sun
Solved! Go to Solution.
10-07-2009 07:35 AM - edited 10-07-2009 07:45 AM
Hi Sun,
As far as I understood, the symbol you refer to is a special character of a special font.
I tried that, but I could not select such special fonts on my GUI as the active font of the textbox.
The GUI interface does not allow this.
However, you can use the following code to change the textbox properties in your code.
ResetTextBox (panelID, controlID, "abc");
SetCtrlAttribute (panelID, controlID, ATTR_TEXT_FONT, "Wingdings");
ProcessDrawEvents ();
Substitude panelID and controlID variables as appropriate for your code.
Here I used Wingdings as a symbol font, you can put here the font of your choice.
Plus, you have to find which keyboard characters correspond to those arrow symbols in that BC15 font and put them inside the string parameter of the ResetTextBox function.
Hope this helps,
10-07-2009 08:15 AM
Hi Balci,
thanks for your reply.
i will check the charcater that is equivalent to arrows.
In Lab windows,i saw there is an option for cad symbols font in Text message settings.
i think that i can use that settings for adding symbols.
How can get the details of the CAD symbols that is supported in Labwindows?
If you give some input regarding this it will be very helpful to me.
Thanks & Regards
Suresh(SUN:-))
10-08-2009 05:42 AM
Hi Suresh,
I really do not understand what you mean by "... option for CAD symbols font in text message settings ..." or "... CAD symbols supported by LabWindows ..."
Can you clarify which setting it isand which symbols are you talking about?
10-09-2009 04:15 AM
Hi Balci,
I mean to say that in uir file where we can make text box settings.If I select the Text font as CAD symbols,the CAD symbols corresponding to Charcter input will be updated in the text box.
what i want to know which charcter maps which Symbol.Can i find any list of this CAD symbols in LAB windows?
If you give some input regarding this it will be very helpful.
I solved my previous problem,I used oxdd as character sequence and updated the Text box, setting the font to BC15.
Iam able to print Down arrow sequence which i needed.
Thanks & Regards
Suresh
10-09-2009 07:37 AM
Hi Balci,
I even solved the problem of displaying symbols on the simulated GUI LCD display.
I written a small program by using a Text Message control with CAD symbol font type and i updated this text box with
character sequence varying value from 0 to 0xFF every second.
By this program, Im able to track the character values
of the symbols which I needed.Similarily I used the BC15 font and tracked the arrow display which I needed
Thanks for your response in giving some insight to my problem initially.
Kind Regards
Suresh
10-09-2009 07:52 AM
Hi Suresh.
I assume that you would like to view all of the characters available in your selected font.
In Windows, click on the Start button, then on Run, type "charmap.exe" then click the OK button. You can then select your font and view the characters and corresponding codes.
Regards,
Colin.
10-09-2009 08:02 AM
Hi Colin,
Thanks a lot.This is really what i needed.
Its pretty easy and nice solution.
Now iam able get info of all symbols and characters i needed, in order to display in GUI
Regards
Suresh