PtMenu

Gamma/Photon: Using Gamma™ with the Photon microGUIŽ, Version 4.0
Prev |  | Next

# `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.

| 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:

  Constant | Description
  --- | ---
  `Pt_MENU_AUTO` | Keeps all menu items the same width.
  `Pt_MENU_TRANSIENT` | Destroys the menu when it is closed, possibly even before generating callbacks.
  `Pt_MENU_TEAR_OFF` | Tear Off
  `Pt_MENU_CHILD` | Lets this menu to override its parent.

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"`.

Prev | Home | Next
`PtList` | Up | `PtMenuBar`

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