PDA

View Full Version : Windows, sub-windows....



KeSh
04-24-2004, 04:10 AM
I created a sub-window at the bottom of the screen using...

//////////////////////////////////
glui2 = GLUI_Master.create_glui_subwindow( main_window, GLUI_SUBWINDOW_BOTTOM );
///////////////////////////////////

...but when i reshape the window( to fullscreen for example), it doesnt stay at the bottom! is there a function to force that?

Andrew Davey
04-25-2004, 01:29 PM
have you tried using the glutCreateSubwindow function? am using that at the minute and works ok.

As for the position thing what i have to do in the main window resize is reset all the other windows. Something like this:

glutSetWindow(sub_window);
glutPositionWindow(initX,initY);
glutReshapeWindow(width, height);Make sense?