Next Previous Up Top Contents Index

8.11 DUIM-Gadgets Module

<menu-button>

Open abstract instantiable class

Summary

The class of all buttons that can appear in menus.

Superclasses

<button>

Init-keywords

update-callback:

An instance of type <function>.

Library

duim-gadgets

Module

duim-gadgets

Description

The class of all buttons that can appear on menus.

You should take special care to define keyboard accelerators and keyboard mnemonics for any menu buttons you create. For a full discussion on this, see the entry for <button>, page 532

Internally, this class maps into the menu item Windows control.

Operations

None.

Example

contain
  (make(<menu-button>, label: "Hello", 
        activate-callback: 
          method (gadget) 
            notify-user
              (format-to-string 
                 ("Pressed button %=", gadget),
                 owner: gadget) end));

See also

<check-menu-button>, page 540

gadget-accelerator, page 552

<menu-box>, page 615

<push-menu-button>, page 629

<radio-menu-button>, page 634


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index