ButtonSource

ButtonSource

is an option for the low-level function ButtonBox that specifies the first argument to give to the ButtonFunction for the button when the button is active and is clicked.

Details

  • The default is ButtonSource->Automatic.
  • Possible settings are:
  • AutomaticButtonData if it is set, otherwise ButtonContents
    ButtonContentsthe first argument of the ButtonBox
    ButtonDatathe setting for the ButtonData option
    Cellthe whole cell in which the button appears
    CellContentsthe contents of the cell in which the button appears
    Notebookthe whole notebook in which the button appears
    nthe expression n levels up from the button in the notebook

Examples

Basic Examples  (4)

Create a button that prints out the value of its ButtonData:

Create a button that prints out the button contents:

ButtonSource->Automatic means the button function acts on ButtonData if it is set:

When ButtonData is not set, ButtonSource->Automatic lets the button act on its contents:

Wolfram Research (1996), ButtonSource, Wolfram Language function, https://reference.wolfram.com/language/ref/ButtonSource.html.

Text

Wolfram Research (1996), ButtonSource, Wolfram Language function, https://reference.wolfram.com/language/ref/ButtonSource.html.

BibTeX

@misc{reference.wolfram_2020_buttonsource, author="Wolfram Research", title="{ButtonSource}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/ButtonSource.html}", note=[Accessed: 16-January-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_buttonsource, organization={Wolfram Research}, title={ButtonSource}, year={1996}, url={https://reference.wolfram.com/language/ref/ButtonSource.html}, note=[Accessed: 16-January-2021 ]}

CMS

Wolfram Language. 1996. "ButtonSource." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ButtonSource.html.

APA

Wolfram Language. (1996). ButtonSource. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ButtonSource.html