LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Character set of graphic legend name

Hello,

 

   I am using LabWindow/CVI 9.0 and have some GUI displaying issue on XP embedded. After employing "Western" character set instead of "Native", most of displaying issues are solved exception one legend names of graphic control. In one graphic control, a couple of lines are plotted via PlotXY and each line has a legend name. The function "SetPlotAttribute" with attribute tag "ATTR_PLOT_LG_TEXT" is employed to set legend names. The legend names are not displayed.  Are there any ways to set character set of legend names? I checked the manual and could not find the proper attribute. There is one called "ATTR_PLOT_LG_FONT" and I also tried to create a metafont via "CreateMetaFontWithCharacterSet" and set mentioned attribute to the new meta font in the legend name but it doesn't work.

 

Any ideas?

0 Kudos
Message 1 of 3
(2,871 Views)

This code below should work. Is this what you tried?

 

CreateMetaFontWithCharacterSet ("ansiMetaFont", VAL_DIALOG_META_FONT, 11, 0, 0, 0, 0, 0,

                                VAL_ANSI_CHARSET);
SetPlotAttribute (panelHandle, PANEL_GRAPH, plotid, ATTR_PLOT_LG_FONT, "ansiMetaFont");

 

Luis

0 Kudos
Message 2 of 3
(2,868 Views)

Yep. Finally I figured it out. In order to correctly display legend name, I have to set ATTR_PLOT_LOG_FONT first then set the text of legend name later via ATTR_PLOT_LG_TEXT. Otherwise, legend name can not be displayed on my XP embedded.

 

 

Thanks.

 

 

0 Kudos
Message 3 of 3
(2,856 Views)