Programmer Guide/Shell Items/Dialog/Dialog Controls/Static: Difference between revisions
From STX Wiki
< Programmer Guide | Shell Items | Dialog | Dialog Controls
Jump to navigationJump to search
(Created page with "File:dialog_control_static.png SET <var>dialog</var> <var>index</var> STATIC <var>row</var> <var>col</var> <var>text</var> [ *|<var>var<sub>1</sub></var> <var>width</var...") |
No edit summary |
||
Line 12: | Line 12: | ||
| An optional variable to be used instead of <var>text</var>. If specified, the static's caption can be updated set to the content of <var>var<sub>1</sub></var> by using the option /Write. Note that you can update the text even if you do not use a variable, by using the <code>SET dialog $#controlIndex * 'the new static text'</code> command. | | An optional variable to be used instead of <var>text</var>. If specified, the static's caption can be updated set to the content of <var>var<sub>1</sub></var> by using the option /Write. Note that you can update the text even if you do not use a variable, by using the <code>SET dialog $#controlIndex * 'the new static text'</code> command. | ||
|- | |- | ||
| | | /L, /R, or /C | ||
| Set the caption text alignment inside the static control. | | Set the caption text alignment inside the static control. | ||
|} | |} |
Latest revision as of 13:38, 7 November 2018
SET dialog index STATIC row col text [ *|var1 width height * fg bg font] [ /L|R|C ]
Note that it is not possible to connect a value item to a static control using the command SET dialog index INPUT output
.
text | The text to display in the static control. |
var1 | An optional variable to be used instead of text. If specified, the static's caption can be updated set to the content of var1 by using the option /Write. Note that you can update the text even if you do not use a variable, by using the SET dialog $#controlIndex * 'the new static text' command.
|
/L, /R, or /C | Set the caption text alignment inside the static control. |
See Common arguments for a description of the parameters not described here.
You can display an image in a static control using the SET dialog BITMAP
command.