Programming
57
Modero G4 Touch Panels - Configuration and Programming
Page Commands (Cont.)
@PPF
Deactivate a specific popup page on either a specified page or the current page.
If the page name is
empty, the current page is used (see example 2). If the popup page is part of a group, the whole group is
deactivated. This command works in the same way as the ’Hide Popup’ command in TPDesign4.
Syntax:
"'@PPF-<popup page name>;<page name>'"
Variables:
popup page name = 1 - 50 ASCII characters. Name of the popup page.
page name = 1 - 50 ASCII characters. Name of the page the popup is displayed On.
Examples:
SEND_COMMAND Panel,"'@PPF-Popup1;Main'"
SEND_COMMAND Panel,"'@PPF-Popup1'"
Deactivates the popup page ’Popup1’ on the current page.
@PPG
Toggle a specific popup page on either a specified page or the current page.
If the page name is empty,
the current page is used (see example 2). Toggling refers to the activating/deactivating (On/Off) of a
popup page. This command works in the same way as the ’Toggle Popup’ command in TPDesign4.
Syntax:
"'@PPG-<popup page name>;<page name>'"
Variables:
popup page name = 1 - 50 ASCII characters. Name of the popup page.
page name = 1 - 50 ASCII characters. Name of the page the popup is displayed On.
Examples:
SEND_COMMAND Panel,"'@PPG-Popup1;Main'"
Toggles the popup page ’Popup1’ on the ’Main’ page from one state to another (On/Off).
SEND_COMMAND Panel,"'@PPG-Popup1'"
Toggles the popup page ’Popup1’ on the current page from one state to another (On/Off).
@PPK
Kill a specific popup page from all pages. Kill refers to the deactivating (Off) of a popup window from all
pages. If the pop-up page is part of a group, the whole group is deactivated. This command works in the
same way as the 'Clear Group' command in TPDesign4.
Syntax:
"'@PPK-<popup page name>'"
Variable:
popup page name = 1 - 50 ASCII characters. Name of the popup page.
Example:
SEND_COMMAND Panel,"'@PPK-Popup1'"
Kills the popup page ’Popup1’ on all pages.
@PPM
Set the modality of a specific popup page to Modal or NonModal. A Modal popup page, when active, only
allows you to use the buttons and features on that popup page. All other buttons on the panel page are
inactivated.
Syntax:
"'@PPM-<popup page name>;<mode>'"
Variables:
popup page name = 1 - 50 ASCII characters. Name of the popup page.
mode = NONMODAL converts a previously Modal popup page to a NonModal.
MODAL converts a previously NonModal popup page to Modal.
modal = 1 and non-modal = 0
Examples:
SEND_COMMAND Panel,"'@PPM-Popup1;Modal'"
Sets the popup page ’Popup1’ to Modal.
SEND_COMMAND Panel,"'@PPM-Popup1;1'"
Sets the popup page ’Popup1’ to Modal.