Download InTouch User's Guide

Transcript
Alarm/Event Clients
689
Context Sensitive Menu Options
The Context Sensitive Menu Options section provides the options to enable
and disable the context sensitive menu features available at this control.
The following descriptions of properties and methods of the AlmDbViewCtrl
are based on the following assumption when used in InTouch scripting:
When an integer tag with a Boolean value is assigned a value "True" and is
read to (or received from) an integer type tagname:
To Set: assign a value not equal 0 or "True"
To Get: you will receive the integer value -1
When an integer tag with a Boolean value is assigned a value "False" and is
read to (or received from) an integer type tagname:
To Set: assign 0 or "False"
To Get: you will receive the integer value 0
Examples To Set:
#AlmDbViewCtrl6.SortMenu = "True"; {enables the Sort Menu
in the context Menu of the Control}
#AlmDbViewCtrl6.SortMenu = 1; {enables the Sort Menu in the
context Menu of the Control}
#AlmDbViewCtrl6.SortMenu = "False"; {disables the Sort Menu
in the context Menu of the Control}
#AlmDbViewCtrl6.SortMenu = 0; {disables the Sort Menu in
the context Menu of the Control}
Examples To Get:
IF #AlmDbViewCtrl6.ShowFetch == 0 THEN {checks for the
actual state of the property}
#AlmDbViewCtrl6.ShowFetch = 1; {toggles the property into
the "True" state if it was previously in the "False" state}
ELSE
#AlmDbViewCtrl6.ShowFetch = 0; {toggles the property into
the "False" state if it was previously in the "True" state}
ENDIF;
Int_Tag = #AlmDbViewCtrl6.ShowGrid {will assign -1 to
Int_Tag
when Grid is shown, will assign 0 when Grid is
not shown}
Font Button
InTouch User’s Guide