Code:
LBG_WINDOW* a_window = 0;

void a_function(){
  a_window = LBG_create_window(0, 20, 160, 512, 256, 12, 1,"Window",&win_bbmaps,&win_cbmaps,&win_tbmaps,1, 0, WF_SHOW | WF_RESIZABLE);
}

void toggle_window()
{
	while(key_y)wait(1);
	if(is(a_window->panel,SHOW)){
		a_window->panel->flags &= ~SHOW;
	}
	else{
//		set(a_window->panel,SHOW);
		a_window->panel->flags |= SHOW;
	}
}

on_y = toggle_window;




a_window is a lbgui object that holds the pointer to a real acknex panel object in the var panel[confusing] lbgui_window->panel->flags


@Lukas Maybe change that pointers name to ack_panel would help.

Last edited by Malice; 05/27/13 20:28.