lcl: docs: fix QuestionDlg code formatting

git-svn-id: trunk@50948 -
This commit is contained in:
ondrej 2015-12-19 16:35:11 +00:00
parent 712001eb4b
commit 60c487ef0f

View File

@ -2781,9 +2781,8 @@ 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.
</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>
case QuestionDlg('COPYING',
</p><p>Some widgetsets provide 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><pre>case QuestionDlg('COPYING',
'Abort?',
mtConfirmation,
[mrNo, '&amp;No','IsDefault',
@ -2794,7 +2793,9 @@ of
else
// mrCancel
ShowMessage('You cancelled the dialog.');
end;</descr>
end;
</pre>
</descr>
<errors/>
<seealso>
<link id="MessageDlg"/>