Skip to main content
gamedev.net
🔒 Locked

Message Box

Started by Third 4 replies 350+ views
Original Post
Third
Third
Is there is a way to make a message box appear in a random place when you create it?
cowsarenotevil
cowsarenotevil
In what language, sir? And do you meant using the "MessageBox" statement, assuming C?
-~-The Cow of Darkness-~-
Third
Third
Using Win32, like using the MessageBox function, and using C++
cowsarenotevil
cowsarenotevil
No. There are no location parameters for the function: MessageBox in the MSDN.

[edited by - cowsarenotevil on September 7, 2003 11:05:15 PM]
-~-The Cow of Darkness-~-
xf00f
xf00f
Hmmm - I''m making a very large presumption here, but...

If you''re wanting to have a box pop up at random places to avoid say a script automatically clicking it, then you can just use the Win32 API call DialogBox() - it creates a modal dialog box just like the MessageBox() call; it just requires a little extra work in writing a DLGPROC function.

You can set the size, location and as many controls (or as few) as you wish. Hope that may have been of some help. Anymore queries, just ask...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.