From 61b7d45c495f784c1142eebd233623eb926f273d Mon Sep 17 00:00:00 2001 From: mattias Date: Sat, 19 Dec 2015 15:35:29 +0000 Subject: [PATCH] lcl: docs: QuestionDlg git-svn-id: trunk@50944 - --- docs/xml/lcl/dialogs.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/xml/lcl/dialogs.xml b/docs/xml/lcl/dialogs.xml index 675e4a74bb..026262aabc 100644 --- a/docs/xml/lcl/dialogs.xml +++ b/docs/xml/lcl/dialogs.xml @@ -2780,6 +2780,8 @@ You can define your own captions and return values of this function. For each TModalResult a button is created.
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.

The default TModalResults defined in controls.pp (mrNone..mrLast) don't need a caption. The default captions will be used. +

You can mark one default button using the 'IsDefault' option. When the user presses 'Return' this button is triggered. +

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'.

case QuestionDlg('COPYING', 'Abort?', @@ -2792,8 +2794,7 @@ of else // mrCancel ShowMessage('You cancelled the dialog.'); -end; - +end;