PtMenuLabel

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

# `PtMenuLabel`

`PtMenuLabel` -- provides labels for menus.

## Synopsis

    class PtMenuLabel PtLabel
    {
        accel_font;     // string
        accel_text;     // string
        button_type;    // unsigned short
        offset;         // unsigned short
    }

## Base Classes

`PtWidget` <-- `PtBasic` <-- `PtLabel` <-- `PtMenuLabel`

## Description

This widget is not yet documented in detail.

| This widget does not appear in the Photon documentation.

## Instance Variables

accel_font

  A string specifying the font for the hotkey accelerator text. Default is `"helv12"`.

accel_text

  A string specifying the hotkey for this widget.

button_type

  This instance variable controls the menu behavior and display, and may have one of the following values:

  Constant | Description
  --- | ---
  `Pt_MENU_TEXT` | If an 'accelerator' hot key is defined, its text string is displayed.
  `Pt_MENU_BAR` | Bar
  `Pt_MENU_RIGHT` | The submenu is displayed to the right of the button.
  `Pt_MENU_DOWN` | The submenu is displayed under the button.
  `Pt_MENU_UP` | Up

offset

  A number of pixels to offset the `accel_text`.

Prev | Home | Next
`PtMenuButton` | Up | `PtMessage`

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