Solved

Pop-up questions on new documents

Posted on 1998-11-02
2
143 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
Comment Utility
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 50 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
List out all word 7 219
Best background services 5 113
dog bark java program 15 81
Detect file exist or not 3 76
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
The most recent Google Panda algorithm update that I wrote about was Panda 2.5 (http://www.experts-exchange.com/Web_Development/Internet_Marketing/A_8112-Google-s-Panda-Algorithm-Update-Panda2-5.html), and there have been several iterations of the P…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now