PtMenu

PtMenu -- A pop-up or pull-down menu.

Synopsis

class PtMenu PtGroup
{
    menu_flags;         // flag  (Pt_ARG_MENU_FLAGS)    
    menu_spacing;       // short  (Pt_ARG_MENU_SPACING)    
    menu_text_font;     // string  (Pt_ARG_MENU_TEXT_FONT)    
    menu_title;         // string  (Pt_ARG_MENU_TITLE)    
    menu_title_font;    // string  (Pt_ARG_MENU_TITLE_FONT)    
}
		

Base Classes

PtWidget <-- PtBasic <-- PtContainer <-- PtGroup <-- PtMenu

Description

This widget forms the basis of a menu. Building menus in Gamma is significantly different than in PhAB, however the detailed documentation has not yet been prepared.

Note

For more information, please refer to PtMenu in the Photon documentation.

Instance Variables

menu_flags

This instance variable controls menu behavior, and may be a combination of zero or more of the following flags:

menu_spacing

A number specifying how many pixels to separate each menu item. The default is the same value as border_width.

menu_text_font

A string specifying the font for the menu text.

menu_title

A string comprising the menu title.

menu_title_font

A string specifying the font for the menu title. Default is "helv12b".

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.