boringduck Posted February 17, 2004 Posted February 17, 2004 Hey, Is there a way to set your msgbox on top of your applications, so the user needs to answer the msgbox before he can continue working? Is there also a way to change the default value after timeout in the msgbox(3,"") now its always ok but it should be cancel? Thanks for the help....
GrahamS Posted February 17, 2004 Posted February 17, 2004 Try a SYSTEM_MODAL message box, using the top-most attribute. The timeout is the fourth parameter, so MsgBox(4096 + 262144 + 3, "Title", "Test", 10) should be a system modal message box with a 10 second timeout GrahamS
boringduck Posted February 17, 2004 Author Posted February 17, 2004 This is already great... now is it possible to set the timeout value on cancel instead of OK???? Regards
Administrators Jon Posted February 17, 2004 Administrators Posted February 17, 2004 ? MsgBox returns -1 when it times out.
boringduck Posted February 17, 2004 Author Posted February 17, 2004 If you do this : MsgBox(4096 + 262144 + 3, "Title", "Test", 10) after 10 seconds he will close the msgbox with the ok buttom automaticly. this should be the cancel buttom.....
Administrators Jon Posted February 17, 2004 Administrators Posted February 17, 2004 $ans = MsgBox(4096 + 262144 + 3, "Title", "Test", 10) MsgBox(0, "", $ans) Prints -1 = time out
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now