$INCLUDE "RAPIDQ.INC"
$RESOURCE RES_ICOINFO AS "sysInfo.ico"
$RESOURCE RES_ICOEXCL AS "sysExcl.ico"
$RESOURCE RES_ICOFATAL AS "sysFatal.ico"
$RESOURCE RES_ICONASK AS "sysAsk.ico"
$TYPECHECK ON
CREATE frmFakeMB AS QFORM
Width = 260 : Height = 130
CAPTION = "< rq Fake MsgBox, w/No Close Button >"
delBorderIcons(biMinimize) : delBorderIcons(biMaximize)
delBorderIcons(biSystemMenu)
Center
CREATE imgIco AS QIMAGE
Left = 10 : Top = 10 : Width = 32 : Height = 32
ICOHandle = RES_ICOINFO
Visible = False
END CREATE
CREATE lblMsgBoxMessage AS QLABEL
Left = 60 : Top = 20 : Width = 300 : Height = 15
CAPTION = "Your message here"
END CREATE
CREATE cmdOK AS QBUTTON
Left = 75 : Top = 65 : Width = 100 : Height = 25
CAPTION = "OK"
END CREATE
END CREATE
SUB cmdOK_ClickEvent
Application.Terminate
END SUB
DIM iIco AS LONG
CONST bDebug = False
CONST MB_OK = &H0
cmdOK.OnClick = cmdOK_ClickEvent
IF bDebug THEN MESSAGEBOX STR$(COMMANDCOUNT), "debug", MB_OK
IF COMMANDCOUNT >= 1 THEN
lblMsgBoxMessage.CAPTION = COMMAND$(1)
IF COMMANDCOUNT >= 2 THEN
iIco = VAL(COMMAND$(2))
SELECT CASE iIco
CASE 1
imgIco.ICOHandle = RES_ICOINFO : imgIco.Visible = True
CASE 2
imgIco.ICOHandle = RES_ICOEXCL : imgIco.Visible = True
CASE 3
imgIco.ICOHandle = RES_ICOFATAL : imgIco.Visible = True
END SELECT
END IF
IF COMMANDCOUNT >= 3 THEN frmFakeMB.CAPTION = COMMAND$(3)
END IF
frmFakeMB.SHOWMODAL
Application.Terminate
|