Screen methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
m (Automatically generated page update)
Line 19: Line 19:
<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">%currentActionKey</span><span class="literal"> =</span> <span class="term">screen</span><span class="literal">:[[MaxActionKey (Screen property)|MaxActionKey]]</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">%currentActionKey</span><span class="literal"> =</span> <span class="term">screen</span><span class="literal">:[[MaxActionKey (Screen property)|MaxActionKey]]</span>
<span class="term">screen</span><span class="literal">:[[MaxActionKey (Screen property)|MaxActionKey]]</span> <span class="literal">= </span><span class="term">newActionKey</span></p>
<span class="term">screen</span><span class="literal">:[[MaxActionKey (Screen property)|MaxActionKey]]</span> <span class="literal">= </span><span class="term">newActionKey</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">%screen</span><span class="literal"> =</span> <span class="literal">%(Screen):[[New (Screen constructor)|New]]</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">%screen</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(Screen)</span><span class="squareb">]</span><span class="literal">:[[New (Screen constructor)|New]]</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">%currentNumber</span><span class="literal"> =</span> <span class="term">screen</span><span class="literal">:[[NewFieldColumn (Screen property)|NewFieldColumn]]</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">%currentNumber</span><span class="literal"> =</span> <span class="term">screen</span><span class="literal">:[[NewFieldColumn (Screen property)|NewFieldColumn]]</span>
<span class="term">screen</span><span class="literal">:[[NewFieldColumn (Screen property)|NewFieldColumn]]</span> <span class="literal">= </span><span class="term">newNumber</span></p>
<span class="term">screen</span><span class="literal">:[[NewFieldColumn (Screen property)|NewFieldColumn]]</span> <span class="literal">= </span><span class="term">newNumber</span></p>

Revision as of 01:43, 23 August 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

%currentNumber = screen:CursorColumn screen:CursorColumn = newNumber

[%number =] screen:CursorItemId

%currentNumber = screen:CursorRow screen:CursorRow = newNumber

%outScreen = screen:DeepCopy

%currentActionKey = screen:MaxActionKey screen:MaxActionKey = newActionKey

%screen = [%(Screen)]:New

%currentNumber = screen:NewFieldColumn screen:NewFieldColumn = newNumber

%currentNumber = screen:NewFieldRow screen:NewFieldRow = newNumber

%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