Programmer Guide/Shell Items/Display/SET DISPLAY: Difference between revisions
m (1 revision: Initial import) |
No edit summary |
||
Line 3: | Line 3: | ||
See [[Programmer Guide/Shell Items/Display/DISPLAY Item Attributes|DISPLAY Item Attributes]] for a list of item attributes. | See [[Programmer Guide/Shell Items/Display/DISPLAY Item Attributes|DISPLAY Item Attributes]] for a list of item attributes. | ||
== Graph Control == | |||
The following commands are used to set the height and width of the window in which a graph is displayed, as well as assigning the graph itself. | |||
===GRAPH=== | |||
SET <var>display</var> GRAPH <var>graphitemname</var> | |||
Activate a graph attached to the display. The activated graph gets the keyboard focus. | |||
===HEIGHT=== | |||
SET <var>display</var> HEIGHT <var>h1</var> [.. <var>hNrows</var>] | |||
Set the height of all graph rows relative to one another. The height of the display window and of the dialog is not changed. E.g. <code>SET display HEIGHT 1 1 2</code> sets the height of row three to the double of the height of rows one and two. | |||
;<var>hX</var> | |||
:The relative height of the row <var>X</var> (1 .. number of rows). | |||
===WIDTH=== | |||
SET <var>display</var> WIDTH <var>row</var>|<var>* left right</var> | |||
Set the width of the columns of the specified row (<var>row</var> ³ <code>0</code>) or all split rows (<var>row</var> = <code>*</code>). The column splitter position is computed using: | |||
pos = left / (left + right) . display_window_width. | |||
;<var>left</var> | |||
:The relative width of the left column (<var>left</var> >= 0). | |||
;<var>right</var> | |||
:The relative width of the right column (<var>right</var> >= 0). | |||
== Graph defaults == | |||
The following settings are not directly used by the [[Programmer_Guide/Shell_Items/Display|display]]. They define the default settings for graphs which are created after the display. For a detailed description see the section [[Programmer_Guide/Shell_Items/Graph/SET_GRAPH|<code>SET GRAPH</code>]]. Only the argument <var>title</var> (of <code>SET display TITLE</code>) is actually used by the display as the window caption (the text in the top left corner of the window). | |||
SET <var>display</var> AXIS <var>xLabel yLabel labelFont labelColor xTitle yTitle titleFont titleColor xUnit yUnit xBorder yBorder</var> | |||
SET <var>display</var> FRAME <var>xscale</var> <var>yscale</var> <var>scalecolor</var> <var>grid</var> <var>gridcolor</var> <var>xsteps</var> <var>ysteps</var> <var>major</var> <var>minor</var> | |||
SET <var>display</var> MARKERS <var>mode</var> <var>auto</var> <var>font</var> <var>color</var> <var>msfont</var> <var>mslincol</var> <var>msfillcol</var> <var>mstextcol</var> | |||
SET <var>display</var> BGCOLOR <var>text</var> <var>draw</var>< | |||
SET <var>display</var> TITLE <var>mode</var> <var>font</var> <var>color</var> [<var>title</var>] |
Revision as of 17:33, 31 October 2012
SET DISPLAY
See DISPLAY Item Attributes for a list of item attributes.
Graph Control
The following commands are used to set the height and width of the window in which a graph is displayed, as well as assigning the graph itself.
GRAPH
SET display GRAPH graphitemname
Activate a graph attached to the display. The activated graph gets the keyboard focus.
HEIGHT
SET display HEIGHT h1 [.. hNrows]
Set the height of all graph rows relative to one another. The height of the display window and of the dialog is not changed. E.g. SET display HEIGHT 1 1 2
sets the height of row three to the double of the height of rows one and two.
- hX
- The relative height of the row X (1 .. number of rows).
WIDTH
SET display WIDTH row|* left right
Set the width of the columns of the specified row (row ³ 0
) or all split rows (row = *
). The column splitter position is computed using:
pos = left / (left + right) . display_window_width.
- left
- The relative width of the left column (left >= 0).
- right
- The relative width of the right column (right >= 0).
Graph defaults
The following settings are not directly used by the display. They define the default settings for graphs which are created after the display. For a detailed description see the section SET GRAPH
. Only the argument title (of SET display TITLE
) is actually used by the display as the window caption (the text in the top left corner of the window).
SET display AXIS xLabel yLabel labelFont labelColor xTitle yTitle titleFont titleColor xUnit yUnit xBorder yBorder SET display FRAME xscale yscale scalecolor grid gridcolor xsteps ysteps major minor SET display MARKERS mode auto font color msfont mslincol msfillcol mstextcol SET display BGCOLOR text draw< SET display TITLE mode font color [title]