lcl: docs: QuestionDlg

git-svn-id: trunk@50944 -
This commit is contained in:
mattias 2015-12-19 15:35:29 +00:00
parent bbe1b886f7
commit 61b7d45c49

View File

@ -2780,6 +2780,8 @@ You can define your own captions and return values of this function.
For each TModalResult a button is created. <br/> For each TModalResult a button is created. <br/>
To set a custom caption, add a string after a button. You can use the special string parameters 'isdefault' and 'iscancel' to setup the default and cancel buttons. To set a custom caption, add a string after a button. You can use the special string parameters 'isdefault' and 'iscancel' to setup the default and cancel buttons.
</p><p>The default TModalResults defined in controls.pp (mrNone..mrLast) don't need a caption. The default captions will be used. </p><p>The default TModalResults defined in controls.pp (mrNone..mrLast) don't need a caption. The default captions will be used.
</p><p>You can mark one default button using the 'IsDefault' option. When the user presses 'Return' this button is triggered.
</p><p>Some widgetsets provides an Escape key and/or a close button. This results in mrCancel even if it is not in the given button list. Use the 'IsCancel' option to redirect it to a button of your choice. You can combine 'IsDefault' and 'IsCancel'.
</p> </p>
case QuestionDlg('COPYING', case QuestionDlg('COPYING',
'Abort?', 'Abort?',
@ -2792,8 +2794,7 @@ of
else else
// mrCancel // mrCancel
ShowMessage('You cancelled the dialog.'); ShowMessage('You cancelled the dialog.');
end; end;</descr>
</descr>
<errors/> <errors/>
<seealso> <seealso>
<link id="MessageDlg"/> <link id="MessageDlg"/>