#include <CNCL/EZDPopUp.h>
CN_EZDPOPUP
EZDObject
None
None
EZDPopUp
is the interface to ezd's popup menus. It defines a
named scheme that is called as the action on a button down event to
display a popup menu. The scheme's functions, displayed names and all
other parameters are stored in the struct MENU
.
When button 1 is pressed down, the menu comes up. Releasing the button
executes the action associated with the current menu entry. Moving the
mouse outside the menu without releasing the button will cause the menu
to disappear, no action is executed. For additional information see the
ezd manual.
Constructors:
EZDPopUp();
EZDPopUp(CNParam *param);
EZDPopUp(const int nmenu, const MENU *menu ...);
nmenu
is the total number of menu items, MENU
a
struct descibed below.
In addition to the member functions required by CNCL, EZDPopUp
provides:
typedef struct menue MENU;
MENU
is a struct of :
int posx, posy
int height
CNString title
CNString t_color
CNString b_color, f_color
CNString* inhalt
CNString* scheme_func
int anz
anz
is larger than the correct number the
program will terminate, if it is smaller, all entries after that number
are set inactive.
Go to the first, previous, next, last section, table of contents.