Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Screen Input

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2003
    Location
    Bray, Co.Wicklow, Ireland
    Posts
    16

    Screen Input

    Hi All !

    I'm using messageBox to display information to the screen in my openGL program (VC++) as follows,

    MessageBox(NULL, "Welcome to the 3D Contour Mapping System - Press OK to Proceed", "Welcome Note", MB_OK);

    // Check if user wants full screen or not
    if(MessageBox(NULL, "Click Yes to go to full screen (Recommended)", "Options", MB_YESNO | MB_ICONQUESTION) == IDNO)
    g_bFullScreen = false;

    However is there any way to use a messageBox or something similar to allow the user to type some text, i.e. a file name and for the program to take this as input ?

    Sorry, I know this isn't strictly and openGL query, but if any of you can help I'd really appreciate it !

  2. #2
    Junior Member Regular Contributor
    Join Date
    Nov 2002
    Location
    Minnesota, US
    Posts
    187

    Re: Screen Input

    You would have to create your own dialog box to do that! This site has some good tutorials on how to do that:
    http://www.gametutorials.com/Tutoria.../Win32_Pg2.htm

    You need to scroll down a bit.

    - Halcyon
    "Programming is an art form that fights back."

    - I forgot who said it!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •