HyperTalk Reference
Home » HyperTalk Reference » Functions

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


the selectedButton of ¬
  [background | card] family intExpr 
Value returned: the domain and number (for example, card button 3) of the highlighted button in the specified button family on the current card or background

If you don't specify card (or cd) or background (or bg or bkgnd), the family is assumed to be on the card layer.

If no button in the specified family is highlighted, selectedButton returns empty.

If the specified family doesn't exist, you get an error dialog box.


get the selectedButton of family 6 -- a card family

put the selectedButton of bg family 4 into hit


Related Topics

« seconds | HyperTalk Reference | selectedChunk »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View