From 758b8af0bc9f7e385291f0e951103d09fed15c72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Thu, 27 May 2021 17:09:27 +0200 Subject: [PATCH] dialog_wrapper.md: clarify exit codes --- topics/user_interface_components/dialog_wrapper.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topics/user_interface_components/dialog_wrapper.md b/topics/user_interface_components/dialog_wrapper.md index fcfd323a0..97a36bfcc 100644 --- a/topics/user_interface_components/dialog_wrapper.md +++ b/topics/user_interface_components/dialog_wrapper.md @@ -41,7 +41,7 @@ When using Kotlin, use [Kotlin UI DSL](kotlin_ui_dsl.md) to provide the dialog's > {type="tip"} -To display the dialog, call the `show()` method and then use the `getExitCode()` method to check how the dialog was closed. +To display the dialog, call the `show()` method and then use the `getExitCode()` method to check how the dialog was closed (see `DialogWrapper#OK_EXIT_CODE|CANCEL_EXIT_CODE|CLOSE_EXIT_CODE`). The `showAndGet()` method can be used to combine these two calls. To customize the buttons displayed in the dialog (replacing the standard OK/Cancel/Help set of buttons), override either the `createActions()` or `createLeftActions()` methods.