Admin Production ni-theme
Current Publication

ATTR_ENABLE_EDITABLE_AXES

LabWindows/CVI

ATTR_ENABLE_EDITABLE_AXES

Type: Control attribute
Description: Determines whether graph axes can be interactively edited when the user clicks either the axis minimum or maximum.



For axes to be editable, the control mode for the graph must be VAL_HOT or VAL_NORMAL and the axis mode must be VAL_MANUAL or VAL_LOCK. If you enable the ATTR_XUSE_LABEL_STRINGS or ATTR_YUSE_LABEL_STRINGS attribute, you cannot use editable axis labels. If you set ATTR_XFORMAT or ATTR_YFORMAT to VAL_RELATIVE_TIME_FORMAT or VAL_ABSOLUTE_TIME_FORMAT, you also cannot use editable axis labels.



If the user modifies a label value so that the minimum value becomes greater than or equal to the maximum value (or so that the maximum value becomes less than or equal to the minimum value), LabWindows/CVI pans the axis range. For example, if a graph has an x-axis range with 0 as the minimum and 10 as the maximum, and the user changes the minimum to 20, LabWindows/CVI displays the graph so that its x-axis ranges from 20 to 30. If the user enters an invalid number or string, LabWindows/CVI ignores the input and reverts the label to its original value.



If the user modifies a label value so that the new minimum value becomes greater than the existing maximum value or the new maximum value becomes less than the existing minimum value, LabWindows/CVI pans the log scales by the difference in power between the original minimum and maximum values. For example, if the graph has an x-axis range with 1 as the minimum and 100 as the maximum, and the user changes the minimum to 1,000, the new maximum is the new value (1,000) times the original difference in power (100) for a result of 100,000.

0 = Prevent editing of graph axes

1 = Allow editing of graph axes
Control Types: Graphs.
Data Type: integer
Default Value: 1
LabWindows/CVI
Compatibility:
LabWindows/CVI 8.1 and later

Values

0 False
1 True