LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to symbols in display of GUI

Solved!
Go to solution

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

0 Kudos
Message 1 of 8
(5,169 Views)

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.

 

Wingdings.png 

 

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,

Message Edited by ebalci on 10-07-2009 03:45 PM
S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 8
(5,153 Views)

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:-))

 

 

0 Kudos
Message 3 of 8
(5,141 Views)

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?

S. Eren BALCI
IMESTEK
0 Kudos
Message 4 of 8
(5,118 Views)

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

 

0 Kudos
Message 5 of 8
(5,099 Views)

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

0 Kudos
Message 6 of 8
(5,080 Views)
Solution
Accepted by topic author Surya_lol

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.

 

0 Kudos
Message 7 of 8
(5,075 Views)

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

0 Kudos
Message 8 of 8
(5,071 Views)