Skip to main content

ControlBar

ControlBar [ /EXP=e /L/R/B/T/W=graphName ] barHeight

The ControlBar operation sets the height and location of the control bar in a graph.

Flags

/EXP=eSets the expansion of the control bar area.
See the NewPanel operation /EXP flag for details.
The /EXP flag was added in Igor Pro 9.00.
/L/R/B/TDesignates whether to use the left, right, bottom, or top (default) window edge, respectively, for the control bar location.
/W=graphNameSpecifies the name of a particular graph containing a control bar.

Parameters

barHeight is in pixels or points, depending on the screen resolution. See Control Panel Resolution on Windows for details.

Setting barHeight to zero removes the control bar.

Details

The control bar is an area at the top of graphs reserved for controls such as buttons, checkboxes and pop-up menus. A line is drawn between this area and the graph area. It may be assigned a separate background color by pressing Ctrl and clicking in the area, or by right-clicking it, or with the ModifyGraph operation. You cannot use draw tools in this area.

For graphs with no controls, you do not need to use this operation.

Use ControlInfo kwControlBar operation to determine the current size of the control bar.

Examples

Display myData
ControlBar 35 // 35 pixels high
Button button0,pos={56,8},size={90,20},title="My Button"

See Also

Controls in Graphs, ControlInfo