04-11-2013 10:16 AM
Hello,
Is there a way to increase the size of the string of a graph legend (CVI 2012 SP1) ? It seems to be limited at 31 characters.
Other question : is it possible to change the name of the default popup menu of a graph legend (changing Color to couleur for example) ?
04-16-2013 09:14 AM
Hello Domp,
The text name has a maximum length of 30 characters and to my knowledge there is no way to modifiy this limit.
For your second question, you should take a look to the following link and especially the graph legend part:
http://zone.ni.com/reference/en-XX/help/370051V-01/cvi/uiref/cviprogramming_with_graph_controls/
Valentin
Valentin
Certified LabVIEW Architect
Certified TestStand Architect
Certified LabWindowsCVI Developer
National Instruments France
04-16-2013 09:27 AM
Some years ago Todd has suggested to increase this graph axes name limit, you can support his suggestion here
04-16-2013 10:09 AM
Thank you Valentin. B.
I've tried to change the name of one of the built-in legend menu items by using SetCtrlMenuAttribute and i've got an error -148 (Cannot set or get this attribute of built-in control menu items). Therefore, nothing in the help of CVI says it's impossible.
Maybe by another way it is possible...
From CVI help :
"In addition to inserting your own menu items, you can remove the built-in items included by default, such as plot color and style. Use HideBuiltInCtrlMenuItem and ShowBuiltInCtrlMenuItem to control the visibility of these items.
You also can use control menu attributes to configure context menus. Call GetCtrlMenuAttribute and SetCtrlMenuAttribute to get and set these attributes."
04-16-2013 10:11 AM
Hi Wolfgang,
Il will support Todd's suggestion.