Screen methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 28: | Line 28: | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentHighlight</span><span class="literal"> =</span> <span class="term">screen</span><span class="literal">:[[ProtectedHighlight (Screen property)|ProtectedHighlight]]</span> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentHighlight</span><span class="literal"> =</span> <span class="term">screen</span><span class="literal">:[[ProtectedHighlight (Screen property)|ProtectedHighlight]]</span> | ||
<span class="term">screen</span><span class="literal">:[[ProtectedHighlight (Screen property)|ProtectedHighlight]]</span> <span class="literal">= </span><span class="term">newHighlight</span></p> | <span class="term">screen</span><span class="literal">:[[ProtectedHighlight (Screen property)|ProtectedHighlight]]</span> <span class="literal">= </span><span class="term">newHighlight</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%key</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">screen</span><span class="literal">:[[Read (Screen function)|Read] | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%key</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">screen</span><span class="literal">:[[Read (Screen function)|Read]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">screen</span><span class="literal">:[[Rows (Screen function)|Rows]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">screen</span><span class="literal">:[[Rows (Screen function)|Rows]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentFieldColor</span><span class="literal"> =</span> <span class="term">screen</span><span class="literal">:[[UnprotectedColor (Screen property)|UnprotectedColor]]</span> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentFieldColor</span><span class="literal"> =</span> <span class="term">screen</span><span class="literal">:[[UnprotectedColor (Screen property)|UnprotectedColor]]</span> |
Revision as of 11:39, 26 June 2011
The syntax for each of the Screen class methods is shown below.
Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of Screen methods.
%key = screen:ActionKey
[%sfield =] screen:AddField[( [Row= number], [Column= number], - [Width= number], [Color= fieldColor], - [Protected= boolean], [Highlight= highlight], - [Numeric= boolean], [Modified= boolean], - [Invisible= boolean], [Autoskip= boolean], - [Itemid= number], [Value= string])]
%number = screen:Columns
%outscreen = screen:Copy
%currentNum = screen:CursorColumn screen:CursorColumn = newNum
[%num =] screen:CursorItemId
%currentNum = screen:CursorRow screen:CursorRow = newNum
%outscreen = screen:DeepCopy
%currentActionKey = screen:MaxActionKey screen:MaxActionKey = newActionKey
%screen = %(Screen):New
%currentNum = screen:NewFieldColumn screen:NewFieldColumn = newNum
%currentNum = screen:NewFieldRow screen:NewFieldRow = newNum
%currentFieldColor = screen:ProtectedColor screen:ProtectedColor = newFieldColor
%currentHighlight = screen:ProtectedHighlight screen:ProtectedHighlight = newHighlight
[%key =] screen:Read
%number = screen:Rows
%currentFieldColor = screen:UnprotectedColor screen:UnprotectedColor = newFieldColor
%currentHighlight = screen:UnprotectedHighlight screen:UnprotectedHighlight = newHighlight