Graphisoft®

Dialog ManagerVersion: 2.0

SystemDialog::SetOKButtonText

Sets the caption of the [OK] button.

void SetOKButtonText (const char * text);

Parameters

text
Null terminated string.

Description

Can be used only before the dialog is displayed.
Note: on some operating systems the supplied text is not allways displayed, just when the user can close the dialog with the default button.

Example

DG::FileDialog dlg (DG::FileDialog::OpenMultiFile);
dlg.SetTitle ("Custom Open File");
dlg.SetOKButtonText ("Open!");
dlg.SetCancelButtonText ("Cancel!");
dlg.Invoke ();