Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » Commands

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

enable

enable menu
enable menuItem of menu
enable button
The enable command activates menu items, entire menus, or buttons that are inactive (dimmed). It’s a shortcut for setting the enabled property to true.

The enable command enables only items in HyperCard’s menus that are currently available to the user. For example, the following command will not enable the Button Info command in the Objects menu unless a button is currently selected:

enable menuItem 1 of menu "Objects"


Examples

enable menu "File"
enable menu 2
enable second menu

enable menuItem "New" of menu "File"
enable menuItem 2 of menu 2
enable second menuItem of second menu

enable background button 3
enable last button

Placeholders

menu
An expression that evaluates to one of the following:

menu text
menu posInteger
ordinal menu
For example:

menu "File"
menu 2
second menu


menuItem
An expression that evaluates to one of the following:

menuItem text
menuItem posInteger
ordinal menuItem
For example:

menuItem "New"
menuItem 2
second menuItem


Related Topics

« edit script | HyperTalk Reference | enterInField »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Commands

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

enable

enable menu
enable menuItem of menu
enable button
The enable command activates menu items, entire menus, or buttons that are inactive (dimmed). It’s a shortcut for setting the enabled property to true.

The enable command enables only items in HyperCard’s menus that are currently available to the user. For example, the following command will not enable the Button Info command in the Objects menu unless a button is currently selected:

enable menuItem 1 of menu "Objects"


Examples

enable menu "File"
enable menu 2
enable second menu

enable menuItem "New" of menu "File"
enable menuItem 2 of menu 2
enable second menuItem of second menu

enable background button 3
enable last button

Placeholders

menu
An expression that evaluates to one of the following:

menu text
menu posInteger
ordinal menu
For example:

menu "File"
menu 2
second menu


menuItem
An expression that evaluates to one of the following:

menuItem text
menuItem posInteger
ordinal menuItem
For example:

menuItem "New"
menuItem 2
second menuItem


Related Topics

« edit script | HyperTalk Reference | enterInField »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View