-
Notifications
You must be signed in to change notification settings - Fork 6
Message Box
Saif Ahmed edited this page Feb 22, 2018
·
6 revisions
Message boxes can inform, warn or confirm activity. This is triggered by a $frame->showDialog($title,$mesage,$response,$icon)
instruction at the script. A typical example is
if($frame->showDialog("Sure?",
"This will wipe existing text...proceed?",
"OKC",
"!")){
$frame->{TextCtrl1}->SetValue("");
}
this will sow this dialog box...
The parameters are: -
- $title=The title of the message box
- $message=The message contained in the box
- $response-the expected responses, one of "YNC" (Yes no cancel), "YN" (Yes or no), "OK", (just ok), or "OKC" (Ok or cancel)
- $icon-the icon displayed. One of "!" (Exclamation mark), "?" (Question mark), "H" (Hand), "I" (Information)
The function returns true if OK or Yes clicked