Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Pop-up questions on new documents

Posted on 1998-11-02
2
Medium Priority
?
159 Views
Last Modified: 2013-11-28
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.
0
Comment
Question by:Mephisto
2 Comments
 
LVL 1

Expert Comment

by:Bridge
ID: 1324161
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
 
LVL 1

Accepted Solution

by:
TheGrinch earned 100 total points
ID: 1324162
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn about the eCommerce marketing trends for the year ahead.
There is a massive demand for content on the web right now, and it doesn't look like it's going to stop any time soon. But, if you are running a business blog, it's not just enough to offer your audience lots of content. It needs to be high-quality…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question