Next Previous Up Top Contents Index

9.4 DUIM-Frames Module

command-enabled?-setter

Generic function

Summary

Enables or disables the specified command.

Signature

command-enabled?-setter enabled? command frame => enabled?

Arguments

enabled?
An instance of type <boolean>.

command
An instance of type type-union(<command>, <command-table>).

frame
An instance of type <frame>.

Values

enabled?
An instance of type <boolean>.

Library

duim-frames

Module

duim-frames

Description

Enables or disables command in frame. If enabled? is true, then command is enabled, otherwise it is disabled. Enabling and disabling a command enables and disables all the gadgets that are associated with the command, such as menu items and tool bar buttons.

This function is useful when manipulating the disabled commands in frame. For example, it is common to disable the Save menu command immediately after saving a file, enabling it again only when the file has been modified.

See also

command-enabled?, page 718


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index