|
C programming HELP, ncurses window functions
I'm new to C and i just figured out how to associate a window with a menu...
my question is... Is there any way I could resize the window.... I've been looking in man for hours and I can't seem to find a solution
Here is my code:
/* Create the window to be associated with the menu */
my_menu_win = newwin(12, 0, 2, 0);
/* Set main window and sub window */
set_menu_win(my_menu, my_menu_win); /*??*/
set_menu_sub(my_menu, derwin(my_menu_win, 0, 0, 1, 1));
set_menu_format(my_menu, 10, 1);
box(my_menu_win, 0, 0);
post_menu(my_menu);
wrefresh(my_menu_win);
PS: also what is the set_menu_sub for?
|