set_page
[Version 1.5 or later]

Sets page parameters.

set_page <PageNumber>,<ParameterType>,<NewValue>
<PageNumber>
Number indicating a page out of all pages arranged on a TP operation panel.
<ParameterType>
Page attributes including color, position and others. (See the table below.)
<NewValue>
Parameter value for making new settings (See the table below.)
<Parameter Type>
|
Explanation
|
<NewValue>
|
---|---|---|
1
|
Page type
|
0 (Fixed)
|
2
|
Button status
|
Not used.
|
3
|
Background color
|
0: Black
1: Blue
2: Green
3: Cyan
4: Red
5: Magenta
6: Brown
7: Light gray
8: Gray
9: Light blue
10: Light green
11: Light cyan
12: Light red
13: Light magenta
14: Yellow
15: White
|
4
|
Text color
(Not used in Version 1.5 or 1.6)
|
0: Black
1: Blue
2: Green
3: Cyan
4: Red
5: Magenta
6: Brown
7: Light gray
8: Gray
9: Light blue
10: Light green
11: Light cyan
12: Light red
13: Light magenta
14: Yellow
15: White
|
5
|
Usable state
|
0: Disable
2: Enable
|
6
|
Visible/invisible state
|
0: Invisible
1: Visible
|

set_page changes the current value of a parameter specified by <ParameterType> to <NewValue> to modify the specifications of a page specified by <PageNumber>.

'!TITLE "<Title>"
|
|
PROGRAM sample2
|
|
·
|
|
·
|
|
·
|
|
set_page panel_no, P_BGCOLOR,GRAY
|
'Set background color of the
'page.
|
set_page panel_no, P_USESTATE,ON
|
'Enable page.
|
set_page panel_no, P_VISSTATE,ON
|
'Make page visible.
|
·
|
|
·
|
|
·
|
|
end
|
|