PDA

View Full Version : hide glui



caophong
06-06-2001, 12:28 AM
hi, does any one know how to hide the glui, that is after i type in a value and press enter. i just want it to hide or destroy the glui windows


cmd_line_glui = GLUI_Master.create_glui( "Enter Live:",
0, 50, 500 );

cmd_line = cmd_line_glui->add_edittext( "Live:",
GLUI_EDITTEXT_TEXT, NULL,
CMD_LINE_ID, control_cb );
cmd_line->set_w( 400 ); /** Widen 'command line' control **/

cmd_line_glui->set_main_gfx_window( main_windows );

GLUI_Master.set_glutIdleFunc(glutIdle);

thanks