LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

graph legend

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

0 Kudos
Message 1 of 5
(3,569 Views)

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

0 Kudos
Message 2 of 5
(3,528 Views)

Some years ago Todd has suggested to increase this graph axes name limit, you can support his suggestion here

0 Kudos
Message 3 of 5
(3,526 Views)

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."

0 Kudos
Message 4 of 5
(3,516 Views)

Hi Wolfgang,

Il will support Todd's suggestion.

 

0 Kudos
Message 5 of 5
(3,514 Views)