Difference between revisions of "VS:VM MoveToLayer"

From VectorMEP
Jump to navigation Jump to search
m
m
Line 18: Line 18:
  
 
== Example ==
 
== Example ==
<nowiki><font color="blue">PROCEDURE</font></nowiki> Example;
+
<pre>
<nowiki><font color="blue">BEGIN</font></nowiki>
+
<syntaxhighlight lang="pascal" line = "line">
AlrtDialog(<nowiki><font color="green">'AlrtDialog'</font></nowiki>);
+
PROCEDURE Example;
AlertInform(<nowiki><font color="green">'AlertInform'</font></nowiki>, <nowiki><font color="green">'advice'</font></nowiki>, <nowiki><font color="blue">FALSE</font></nowiki>);
+
BEGIN
AlertCritical(<nowiki><font color="green">'AlertCritical'</font></nowiki>, <nowiki><font color="green">'advice'</font></nowiki>);
+
AlrtDialog('AlrtDialog');
Message(YNDialog(<nowiki><font color="green">'YNDialog'</font></nowiki>));
+
AlertInform('AlertInform', 'advice', FALSE);
Message(AlertQuestion(<nowiki><font color="green">'question'</font></nowiki>, <nowiki><font color="green">'advice'</font></nowiki>, <nowiki><font color="maroon">1</font></nowiki>, <nowiki><font color="green">'ok'</font></nowiki>, <nowiki><font color="green">'cancel'</font></nowiki>, <nowiki><font color="green">'a'</font></nowiki>, <nowiki><font color="green">'b'</font></nowiki>));
+
AlertCritical('AlertCritical', 'advice');
<nowiki><font color="blue">END</font></nowiki>;
+
Message(YNDialog('YNDialog'));
<nowiki><font color="blue">RUN</font></nowiki>(Example);
+
Message(AlertQuestion('question', 'advice', 1, 'ok', 'cancel', 'a', 'b'));
 +
END;
 +
RUN(Example);
 +
</syntaxhighlight>
 +
</pre>
  
 
== Version ==
 
== Version ==
 
Availability: from VectorMEP 2021
 
Availability: from VectorMEP 2021
 
[[Category:VS Function Reference:Object Editing]]
 
[[Category:VS Function Reference:Object Editing]]

Revision as of 07:49, 16 November 2020


Description

<font color="blue">def</font> vs.AlertQuestion(question, advice, defaultButton, OKOverrideText, CancelOverrideText, customButtonAText, customButtonBText):
    <font color="blue">return</font> INTEGER

Parameters

question STRING The question to display
advice STRING The text to be added in a smaller font under the main information/message
defaultButton INTEGER Specifies which button is to be made the default
OKOverrideText STRING Specifies a string to use in overriding the 'OK' string
CancelOverrideText STRING Specifies a string to use in overriding the 'Cancel' string
customButtonAText STRING Specifies a string to use for an optional custom button A
customButtonBText STRING Specifies a string to use for a second optional custom button B

Return Value

Remarks

Example

<syntaxhighlight lang="pascal" line = "line">
PROCEDURE Example;
BEGIN
AlrtDialog('AlrtDialog');
AlertInform('AlertInform', 'advice', FALSE);
AlertCritical('AlertCritical', 'advice');
Message(YNDialog('YNDialog'));
Message(AlertQuestion('question', 'advice', 1, 'ok', 'cancel', 'a', 'b'));
END;
RUN(Example);
</syntaxhighlight>

Version

Availability: from VectorMEP 2021