selectedButton

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the selectedButton of [{card | background}] family <familyNumber>
Summary

Returns the name of the currently highlighted button in a family.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
familyNumber

A positive integer.

Example
the selectedButton of family 3
put the selectedButton of family myFamily into thisButton
Values
NameTypeDescription
return

The selectedButton function returns a string of the form '*domain* button buttonNumber', where domain is either card or background.

RelatedKeyword: string, button
Property: family, hilitedButton, radioBehavior
Command: group
Object: button
Glossary: property, highlight, radio button, return
Control Structure: function
Description

Use the selectedButton function to find out the current setting of a radio-button cluster controlled by the family property.

This function exists for compatibility with imported HyperCard stacks. You can use the radioBehavior property to cause a group consisting of buttons to behave as a radio cluster, and use the hilitedButton property to find out which button in the group is highlighted.

Tagsui