• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/linux/linux/scripts/lxdialog/

Lines Matching defs:menu

2  *  menubox.c -- implements the menu box
30 * to the first position in the menu box. Now lxdialog is a bit
31 * smarter and works more like other menu systems (just have a look at
50 * middle of the menu box, not at the bottom.
64 * Print menu item
163 * Display a menu for choosing among a number of options
173 WINDOW *dialog, *menu;
218 /* create new window for the menu */
219 menu = subwin (dialog, menu_height, menu_width,
221 keypad (menu, TRUE);
223 /* draw a box around the menu items */
228 * Find length of longest item in order to center menu.
262 /* Print the menu */
264 print_item (menu, items[(first_item + i) * 2 + 1], i, i == choice,
268 wnoutrefresh (menu);
274 wmove (menu, choice, item_x+1);
275 wrefresh (menu);
278 key = wgetch(menu);
303 print_item (menu, items[(scroll+choice)*2+1], choice, FALSE,
308 /* Scroll menu down */
309 scrollok (menu, TRUE);
310 wscrl (menu, -1);
311 scrollok (menu, FALSE);
315 print_item (menu, items[scroll * 2 + 1], 0, FALSE,
322 print_item (menu, items[(scroll+choice)*2+1], choice, FALSE,
328 /* Scroll menu up */
329 scrollok (menu, TRUE);
330 scroll (menu);
331 scrollok (menu, FALSE);
335 print_item (menu, items[(scroll+max_choice-1)*2+1],
342 scrollok (menu, TRUE);
345 wscrl (menu, -1);
347 print_item (menu, items[scroll * 2 + 1], 0, FALSE,
354 scrollok (menu, FALSE);
359 scrollok (menu, TRUE);
360 scroll(menu);
361 scrollok (menu, FALSE);
363 print_item (menu, items[(scroll+max_choice-1)*2+1],
375 print_item (menu, items[(scroll+choice)*2+1], choice, TRUE,
382 wrefresh (menu);
395 wrefresh (menu);