Home Cooker Classes Others Rice CookerGX
Classes  >  message  >  OkCancelDialog(string)
message class : OkCancelDialog(string) method

Description

Displays a ok-cancel window for single line.

Syntax

messageInstance.OkCancelDialog(string line)

Arguments

ClassNameDescription
stringlineSingle line message.

Return value

ClassDescription
boolValue that indicates whether ok-button was selected.

Sample code

message m;

bool okCancel = m.OkCancelDialog("message");

Notes

Window that is displayed is a modal window. Blocking other actions in the application until the user closes it.

Even if there is a new line in the message, it will be displayed in a single line.

If the window is closed by pressing the ok button, the return value is true. Otherwise, the return value is false.

Links for reference

None

Copyright © Rice All rights reserved.