Program LazMessage;
Uses Dialogs;
begin
ShowMessage ('This is a message from Lazarus')
-end.
Two versions of this function which displays a prompt and expects user input of textual data;
- - -The first includes a MaskInput boolean argument which determines whether the user input is masked out by asterisks in the text-input box (like during entry of a password),
+ Two versions of this function which displays a prompt and expects user input of textual data; The first includes a MaskInput boolean argument which determines whether the user input is masked out by asterisks in the text-input box (like during entry of a password),
the second omits this property. The text entered by the user is returned in the variable argument 'Value'.
+ The text entered by the user is returned in the variable argument 'Value'.
The function result is a boolean which returns TRUE if the OK button was pressed, or FALSE if the box was closed by any other mechanism (such as clicking the 'Close' icon on the top title bar). Omitting the MaskInput argument is equivalent to setting it FALSE. Omitting the MaskInput argument is equivalent to setting it FALSE.
If the user selects the OK button, the text in the text box is returned. If the user selects the Cancel button, the default string is returned.
- If the user selects the OK button, the text in the text box is returned. If the user selects the Cancel button, the default string is returned.
+
Function PasswordBox(const ACaption, APrompt : String) : String;
+