Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference »

Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.

newButton

newButton

Handler:

on newButton
statements
end newButton

HyperCard sends the newButton message to a button just after HyperCard creates it.

Although the new button will not have a script with which to respond to the message, any other object along the message-passing path can handle it.

Examples

--This handler sets the autoHilite for each new button:
on newButton
-- the target is the name of the new button
set autoHilite of the target to true
pass newButton
end newButton

Related Topics

Placeholders

statements

Any return-separated list of built-in commands, user-defined handlers, or keywords that are part of a message or function handler.

put "Hello world" -- built-in command
get total(field 1) -- function call
global HelpInfo -- keyword

HyperTalk Reference


Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Modern View