MessageServiceShowCustomDialog(String, String, Int32, Int32, String) Method |
Shows a custom dialog.
Namespace: Altaxo.Main.ServicesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static int ShowCustomDialog(
string caption,
string dialogText,
int acceptButtonIndex,
int cancelButtonIndex,
params string[] buttontexts
)
Parameters
- caption String
- The title of the dialog.
- dialogText String
- The description shown in the dialog.
- acceptButtonIndex Int32
-
The number of the button that is the default accept button.
Use -1 if you don't want to have an accept button.
- cancelButtonIndex Int32
-
The number of the button that is the cancel button.
Use -1 if you don't want to have a cancel button.
- buttontexts String
- The captions of the buttons.
Return Value
Int32The number of the button that was clicked, or -1 if the dialog was closed without clicking a button.
See Also