MsgBox

Blitz3D Forums/Blitz3D Beginners Area/MsgBox

amitjf(Posted 2006) [#1]
I know well VB And Basic languages. In VB There was a command that called msgbox that sending u a box with ok button and something that is writen in there. I saw such a thing in blitz demo samples in the xfighter sample. when u trying to exit it sending u a messege that says "Exit Terrain Demo?" When I tried to Slove which command it was, it was in the "start.bb" -
If info1$<>""
Apptitle "Exit"+Apptitle+"?"
end if
But Apptitle is defenetly another command. so how to do that?


Matty(Posted 2006) [#2]
In blitz3d the only way, without using a gui lib or dll, to get the windows style msgbox to occur is when the program exits. The apptitle command has two parameters, the first being the name to give the application (shown in windowed mode), the second is optional and is the prompt to ask the user when the little x in the corner is pressed.


amitjf(Posted 2006) [#3]
Thanks, But do anyone knows about a gui lib or dll to do the msgbox?


b32(Posted 2006) [#4]
There is a MsgBox in my dll: http://www.codersworkshop.com/viewshowcase.php?id=734
The function is called Yo ("")
However, I use RunTimeError "message" now.


b32(Posted 2006) [#5]
In user32.dll there is:
api_MessageBox(0, "Press OK please", "Notification", 0)


amitjf(Posted 2006) [#6]
thx ill try it