QMessageBox Example
A message box object is created invisible. To show a message alert method must be invoked.
The code below creates a message box and shows an alert after the page gets downloaded.
Use the test cases to invoke methods of the message box directly.
// define box resource
box = new QBoxRes(13, 13, 13, 13,
"img/qlib/wtc.gif", "img/qlib/wtr.gif", "img/qlib/wmr.gif",
"img/qlib/wbr.gif", "img/qlib/wbc.gif", "img/qlib/wbl.gif",
"img/qlib/wml.gif", "img/qlib/wtl.gif",
"#FFE831", "img/qlib/wbg.gif",
QWndCtrl.SHADOW + QWndCtrl.FADEIN + QWndCtrl.HBARNOUT);
// define button resource
btn = new QButtonRes(QButton.NORMAL, 46, 29,
"img/qlib/btn2n.gif", "img/qlib/btn2p.gif");
// create box
mb = new QMessageBox(null, "mb", box, btn, "Test");