05-20-2011 09:56 AM
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?
05-20-2011 11:19 AM - edited 05-20-2011 11:21 AM
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
05-20-2011 03:50 PM
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.