In this post, where he created a TXT WIndow based Fixed Font message box replacement for PBCC:
Dale wrote
'If you have both PBWin and PBCC, I suggest compiling Stuart's to DLL for use
'with PBCC. This one is intended as an option for users who only have PBCC.
I thought that sounded like a good idea, so I compiled it for those who don't have PBWIn. The DLL is a compilation of the code at
Here's a simple test application in PBCC:
'
The DLL and PBWIn source are in the attached Zip
Dale wrote
'If you have both PBWin and PBCC, I suggest compiling Stuart's to DLL for use
'with PBCC. This one is intended as an option for users who only have PBCC.
I thought that sounded like a good idea, so I compiled it for those who don't have PBWIn. The DLL is a compilation of the code at
Here's a simple test application in PBCC:
'
Code:
#COMPILE EXE #DIM ALL DECLARE FUNCTION DlgMsgBox LIB "DlgMsgBox.dll" ALIAS "DLGMSGBOX" (hParent AS DWORD, wsText AS WSTRING,lButtons AS LONG,wsTitle AS WSTRING, _ wsFont AS WSTRING,lFontsize AS LONG, _ OPT lFGColour AS LONG, lBGColour AS LONG, lTimeOutSecs AS LONG) AS LONG FUNCTION PBMAIN () AS LONG TestDlgMsg(CON.HANDLE) 'only need to pass console handle if you to deactivate the console (using %WM_SYSTEMMODAL or %WM_TASKMODAL) while the messagebox is active ? "done" WAITKEY$ END FUNCTION FUNCTION TestDlgMsg(hWnd AS DWORD) AS LONG LOCAL wsMsg AS WSTRING LOCAL lRet AS LONG wsMsg = "This is a Warning Message." & $LF & _ "It tells you something important" & $LF & _ "..." & $LF & _ "Thie message will time out after ten seconds" & _ " and return 'Cancel' (%MB_DEFBUTTON1)." DO lRet = DlgMsgBox(hWnd,wsMsg,%MB_CANCELTRYCONTINUE OR %MB_DEFBUTTON1 OR %MB_ICONWARNING OR %MB_TASKMODAL,"This is a Messagebox", _ "Arial Bold",10,%RGB_RED,%RGB_YELLOW,10) SELECT CASE lRet CASE %IDCANCEL ? "Cancelled" CASE %IDRETRY ? "Retry" CASE %IDCONTINUE ? "Continue" END SELECT LOOP WHILE lRet = %IDRETRY END FUNCTION '
The DLL and PBWIn source are in the attached Zip
Comment