You can create your own message box.
Something like the following:
USES "UI"
begin ControlID
%txt_Message
%btn_OK
end ControlID
function MyMsgBox(byval hParent as long, byval sText as string, byval sCaption as string) as long
DIALOG New Pixels , Name frmMsgBox,
hParent,
sCaption,
-1, -1, 320, 240,
%WS_SYSMENU
CONTROL ADD Textbox , Name txtMessage , frmMsgBox.Handle, %txt_Message , "",
5, 5, frmMsgBox.CW - 10, frmMsgBox.CH - 100,
%ES_WANTRETURN | %ES_MULTILINE | %ES_READONLY, %WS_EX_TRANSPARENT
CONTROL ADD BUTTON , Name btnOK , frmMsgBox.Handle, %btn_OK , "OK",
frmMsgBox.CW/2-50, frmMsgBox.CH - 50, 100, 25, %BS_DEFAULT | %WS_TABSTOP
txtMessage.Text = sText
DIALOG SHOW MODAL frmMsgBox.Handle
end Function
'------------------------------------------------
CallBack Function frmMsgBox.OnLoad() As Long
'------------------------------------------------
txtMessage.BackColor = Win_GetSysColor(%COLOR_BTNFACE)
End Function
'------------------------------------------------
' Function fired when button Run me is clicked
'------------------------------------------------
CallBack Function btnOK.OnClick() As Long
'------------------------------------------------
frmMsgBox.Close
End Function
MyMsgBox(0, "Hi there" + $crlf + "from thinBAsic", "My Message Box")
Bookmarks