Pop-up questions on new documents

How can I have a window pop up on a new document to ask, for example, for player names.  I have a game and want to be able to have a pop-up window saying "Enter Player 1's Name" with a box below or beside it and a window saying "Enter Player 2's Name" with a box below or beside it for input and then have the input names be stored into strings for later output onto the screen.
MephistoAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
TheGrinchConnect With a Mentor Commented:
In the constructor of your document class, execute a modal dialog which accepts input of player names, etc., and stores the data in strings which are data members of the document. This data will then be available as needed.

I assume you are familiar with building and executing a dialog.
0
 
BridgeCommented:
Look into creating a DialogBox and displaying it using DoModal(). There is plenty in the help. Once youve done this perform the do modal in the documents OnNewDocument() function.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.