Home Cooker Classes Others Rice CookerGX
Classes  >  message  >  OkCancelDialog(list{Rstring})
message class : OkCancelDialog(list{Rstring}) method

Description

Displays a ok-cancel window for multiple lines.

Syntax

messageInstance.OkCancelDialog(list{string} lines)

Arguments

ClassNameDescription
list{string}linesa string list for multiple lines. Individual item of the list is a single line.

Return value

ClassDescription
boolValue that indicates whether ok-button was selected.

Sample code

message m;

list{string} ls;

ls.Add("First message");

ls.Add("Second message");

bool okCancel = m.OkCancelDialog(ls);

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