You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)