Go to the first, previous, next, last section, table of contents.


EZDPopUp -- Interface to EZD popup menu

SYNOPSIS

#include <CNCL/EZDPopUp.h>

TYPE

CN_EZDPOPUP

BASE CLASSES

EZDObject

DERIVED CLASSES

None

RELATED CLASSES

None

DESCRIPTION


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 ...);
Initializes the conection to ezd's popup with a variable size of parameters. 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
minimum (x,y) coordinates of the menu
int height
height of the menu
CNString title
menu title, used as name of the scheme
CNString t_color
title color
CNString b_color, f_color
color of the background and the frame
CNString* inhalt
menu entries
CNString* scheme_func
scheme functions
int anz
total number of menu entries Take note that the [i]th entrie and the [i]th function are associated with each other. If 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.