ButtonFunction
低レベル関数ButtonBoxのオプションとして使われ,アクティブなボタンがクリックされたときに実行する関数をボタンに関連付ける.
詳細
- ButtonFunctionのデフォルト設定では,ノートブック文書の現在位置にボタン内容がペーストされる.
- ボタンまたはボタンの帰属するセルでは,Enabled->Trueの設定が有効なときだけButtonFunctionが実行される.
- ButtonFunction->f の設定では,f に与える第1引数にはButtonSourceで指定される値が使われる.また,第2引数にはButtonDataで指定の値が使われる.
- Wolfram言語標準の評価優先順位の規則のため,ButtonFunction->(body&)にはカッコを使う必要がある.
- 特に指定しないとき,ButtonFunctionの設定には,オプションBaseStyleに指定されたボタンスタイルから継承した値が使われる.
- デフォルト設定のEvaluator->Noneでは,ボタンに関連付けられた関数によって生成された式は,フロントエンドで評価される.
履歴
1996 で導入 (3.0)
テキスト
Wolfram Research (1996), ButtonFunction, Wolfram言語関数, https://reference.wolfram.com/language/ref/ButtonFunction.html.
CMS
Wolfram Language. 1996. "ButtonFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ButtonFunction.html.
APA
Wolfram Language. (1996). ButtonFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ButtonFunction.html
BibTeX
@misc{reference.wolfram_2025_buttonfunction, author="Wolfram Research", title="{ButtonFunction}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/ButtonFunction.html}", note=[Accessed: 21-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_buttonfunction, organization={Wolfram Research}, title={ButtonFunction}, year={1996}, url={https://reference.wolfram.com/language/ref/ButtonFunction.html}, note=[Accessed: 21-April-2026]}