d_menu_proc(3alleg4) Allegro manual d_menu_proc(3alleg4)NAME
d_menu_proc - Dialog procedure implementing a menu bar object. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int d_menu_proc(int msg, DIALOG *d, int c);
DESCRIPTION
This object is a menu bar which will drop down child menus when it is clicked or if an alt+key corresponding to one of the shortcuts in the
menu is pressed. It ignores a lot of the fields in the dialog structure, in particular the color is taken from the gui_*_color variables,
and the width and height are calculated automatically (the w and h fields from the DIALOG are only used as a minimum size.) The dp field
points to an array of menu structures: see do_menu() for more information. The top level menu will be displayed as a horizontal bar, but
when child menus drop down from it they will be in the normal vertical format used by do_menu(). When a menu item is selected, the return
value from the menu callback function is passed back to the dialog manager, so your callbacks should return D_O_K, D_REDRAW, or D_CLOSE.
SEE ALSO active_menu(3alleg4), gui_menu_draw_menu(3alleg4), exgui(3alleg4)Allegro version 4.4.2 d_menu_proc(3alleg4)
Check Out this Related Man Page
d_menu_proc(3alleg4) Allegro manual d_menu_proc(3alleg4)NAME
d_menu_proc - Dialog procedure implementing a menu bar object. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int d_menu_proc(int msg, DIALOG *d, int c);
DESCRIPTION
This object is a menu bar which will drop down child menus when it is clicked or if an alt+key corresponding to one of the shortcuts in the
menu is pressed. It ignores a lot of the fields in the dialog structure, in particular the color is taken from the gui_*_color variables,
and the width and height are calculated automatically (the w and h fields from the DIALOG are only used as a minimum size.) The dp field
points to an array of menu structures: see do_menu() for more information. The top level menu will be displayed as a horizontal bar, but
when child menus drop down from it they will be in the normal vertical format used by do_menu(). When a menu item is selected, the return
value from the menu callback function is passed back to the dialog manager, so your callbacks should return D_O_K, D_REDRAW, or D_CLOSE.
SEE ALSO active_menu(3alleg4), gui_menu_draw_menu(3alleg4), exgui(3alleg4)Allegro version 4.4.2 d_menu_proc(3alleg4)
I am trying to get sed, tr or awk to search a file that contains records with fields delimited by the vertical bar | and replace the occurrences in the records where the vertical bar is preceded by a space " |" with a vertical bar.
Sample data record
zelli |||59 Stonewall Dr ||W Barnstable |MA... (2 Replies)
hello.
i want to create a useradd dialog menu.
i cannot make a single menu with 4 box inputs ( user, pass, fullname, shell ) because the dialog utility is either limited or either i know to less about using the dialog utility.
from what i see it only allows me to post these 4 boxes one by one,... (3 Replies)
Hi,
Anyone can help me on how to return back to normal size not the full size of my virtual box screen display and also display the menu bar from the top.
Thanks in Advance. (4 Replies)
Can someone please tell me how to change the time and date format in the menu bar. I get to System Preferences -- Language and Text, format, customize, but I can't figure out what to do next. I want to change, say from Tue May 4 to 5 4 2010. How the heck do I do this? (5 Replies)
Hi Agian
Sorry for all these questions...:
Last one for a whie, I promise
This is an example of a menu script I am using. It works OK...when I get to the 2nd menu level, if the command is issued or canceled, I would like to go back to the first menu (# MAIN SECTION)
This is NOT the... (7 Replies)
Hi Team,
I have a requirement to login into URL using username and password , then I have to select a "particular name" from drop-down menu and then Read the values user records etc.... using perl.
Is it possible to do in perl script ? (OR) Can you please let me know which scripting... (1 Reply)
Hi Guys,
Please pardon me if this is a silly question, but I have tried to find an answer and going through the man page and failed to get one. I have created a menu driven script with dialog --menu option. Everything is working as expeted, however, it seems that if I have more than 10... (1 Reply)
I need to replace consecutive double quotes in a csv file, the data in the file is enclosed in double quotes but there are some places where the quotes are repeating
Example is below
Incoming data is :
"Pacific Region"|"PNG"|"Jimmy""|""|
Need output as:
"Pacific... (10 Replies)
Hi
I'm currently making a schoolproject and I'm stuck with reading an array into the possible options of a menu dialog. What I mean is: I've put some values into an array, I want all these values from the array to be possible to be selected in the menu. Please help :)
I'm programming in Debian... (1 Reply)