texboxes, buttons, etc.
How can i place textboxes, buttons, etc. on the screen along with 3D. Like a dialog box that is always open. A Good example would be the MilkShape3D editor where the components are on the right side of the screen and are always visible.
Thanks
You could just open it in a modeless dialog box. Alternatively, you can actually create controls using CreateWindow() inside your main GL window, using the predefined controls classes. Look at MSDN for CreateWindow, that''s probably a good start. You could also create a dialog and mask it with a region so that parts are transparent, but that may be overkill.
I made my own. They were created in OpenGL, and they were not the best, but it was a nice touch.
Dustin Davis
Owner / CEO
Programmers Unlimited
www.Programmers-Unlimited.com
Dustin Davis
Owner / CEO
Programmers Unlimited
www.Programmers-Unlimited.com
Dustin DavisOwner / CEOProgrammers Unlimitedwww.Programmers-Unlimited.com
I did the same thing, needed windows, message boxes, text entry, buttons, checkboxes, the works. Just designed reusable OpenGL code to display and make them work. Help''s yah learn OpenGL, thats for sure
*Moving Forward Along the Backward Walkway of Technology*

*Moving Forward Along the Backward Walkway of Technology*
*Moving Forward Along the Backward Walkway of Technology*
Great! Something I can help answer.
Check out this site for a good tutorial on GameDev which shows how to setup a model viewer, more or less like the one in Milkshape, with some components on the right side.
http://www.gamedev.net/reference/programming/features/3dmfc/
It also shows how to do multiple viewports. You''ll probably have to look up some basic MFC as well as this page but there is source with it.
Hope that helps you out!
Check out this site for a good tutorial on GameDev which shows how to setup a model viewer, more or less like the one in Milkshape, with some components on the right side.
http://www.gamedev.net/reference/programming/features/3dmfc/
It also shows how to do multiple viewports. You''ll probably have to look up some basic MFC as well as this page but there is source with it.
Hope that helps you out!
"If all else fails, lower your standards."
hahahahaha!
Sorry for laughing at you but it is quite funny to me that you can program in openGL and yet not know the first thing about windows! I assume you don''t program in C++ otherwise you would know the answer. This is how to do it with Object Windows:
1) Create your main window add your buttons or whatever to the right of it. (Buttons and controls are actually derived from the windows class and are simply CHILD WINDOWS).
2) Now create another CHILDWINDOW whose parent is the MainWindow. Make it a POPUP window so it is basically just a rectangle. Use THIS window to run your openGL graphics in. You could actually put multiple CHILDWINDOWS onto your main window to show different views.
Finally:
hohohohohoho!

Sorry for laughing at you but it is quite funny to me that you can program in openGL and yet not know the first thing about windows! I assume you don''t program in C++ otherwise you would know the answer. This is how to do it with Object Windows:
1) Create your main window add your buttons or whatever to the right of it. (Buttons and controls are actually derived from the windows class and are simply CHILD WINDOWS).
2) Now create another CHILDWINDOW whose parent is the MainWindow. Make it a POPUP window so it is basically just a rectangle. Use THIS window to run your openGL graphics in. You could actually put multiple CHILDWINDOWS onto your main window to show different views.
Finally:
hohohohohoho!

well you just turned my question into a statement. I asked how? not what?
Can you tell me in more detail how to do what you just said.
Can you tell me in more detail how to do what you just said.
To J-the-bear: thanks, but i dont want to use MFC. Do you know how to do it without MFC?
quote:
Original post by didalabu2
To J-the-bear: thanks, but i dont want to use MFC. Do you know how to do it without MFC?
Yes.
WxWindows and manual.
Do you want to do something lile this? I could give the wxwindows code for this. WxWindows has opengl component so you could have opengl in one subwindows for example.
[edited by - stefu on May 15, 2003 12:55:04 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement