Programming
116
Modero G4 Touch Panels - Configuration and Programming
Popups
Custom Events for Popups
^PUN
Notifies when a popup custom event has been sent to the Master. When a popup is attached, detached, or
moved on a page, a custom event is sent to the master from port 1 of the device to indicate the popup's
location.
On a move, the custom event is sent when the move is complete but not when the moves starts or is in
progress. Notifications happen via a custom event (1323) sent to the master.
The same event type (132) is used for ?PUL responses.
Syntax:
'^PUN-<enable>'
Variable:
enable: 0 = disable, 1 = user pages only, and 2 = all pages (user + system)
Custom Event fields:
ID = 0
Type = 1323
Flag = operation (0=location query, 10=attach, 20=drag, 30=detach)
Value1 = x coordinate of popup
Value2 = y coordinate of popup
Value3 = 0
Text = popup name
Text = popup name
?PUL
Queries the location of a popup on the current page. Notifications happen via a custom event (1323) sent
to the master from port 1 of the device.
The same event type (1323) is used for ^PUN notifications.
If the popup name is invalid, no custom event is sent to the master.
Syntax:
'?PUL-<popup name>'
Variable:
Popup name: The name of the popup whose location is being queried.
Custom Event fields:
ID = 0
Type = 1323
Flag = operation (0=location query)
Value1 = x coordinate of popup (always 0 is not attached to current page)
Value2 = y coordinate of popup (always 0 is not attached to current page)
Value3 = 1 if popup is attached to current page, 0 of not attached to current page
Text = popup name
?PUS
Queries the size of a popup on the current page. Notifications happen via a custom event (1324) sent to
the master from port 1 of the device.
If the popup name is invalid, no custom event is sent to the master.
Syntax:
'?PUS-<popup name>'
Variable:
Popup name: The name of the popup whose size is trying to be queried.
Custom Event fields:
ID = 0
Type = 1324
Flag = 0
Value1 = width of popup
Value2 = height of popup
Value3 = 1 if popup is attached to current page, 0 of not attached to current page
Text = popup name