Wolfram Research製品ご購入サービスとリソース会社概要その他のWolframサイト
Mathematica Technical FAQs Services & Resources / Mathematica / ノートブックインターフェース
-----
 /
ボタンとハイパーリンク
*Mathematica
*Network Mathematica
*webMathematica
*gridMathematica
*Personal Grid Edition
*Wolfram Workbench
*Wolfram Education Group
*アプリケーションパッケージ
*Mathematica for Students
*Mathematica CalcCenter
*Publicon
*A New Kind of Science Explorer
*Mathematical Explorer
*Mathematica Teacher's Edition
*Calculus WIZ
*Mathematica Player
*このページについてのお問い合せ
*このページを印刷
*このページをメールで送信
*ご意見・ご提案
*
ニュースレターのご登録

ButtonStyleを修正したり生成したりする方法を教えてください.


このことを完全に理解するには,まずオプションの継承を理解しなければなりません.

http://support.wolfram.co.jp/mathematica/interface/options/inheritance.html

ボタンの違いは,スタイルシートレベルではボタンオプションはボタンを含むセルのスタイル定義によって決まるのではなく,ボタンのButtonStyleオプションのスタイル定義によって決まるということです.異なるButtonsStylesのスタイル定義はスタイルシートにあります.

http://support.wolfram.com/mathematica/interface/options/stylesheet.html

標準スタイルシートの中のPalette StylesとHyperlink Stylesセクションにスタイル定義がリストされています.これらのスタイル定義はそのButtonStyleのButtonに以下の3種類の情報を渡します.

  • ButtonContentsが継承するフォントオプション(FontColor,FontFamily,FontFace等).

  • ButtonBoxが継承するボタンオプション(ButtonFunction,ButtonData,Background等).これはセルオプションのButtonBoxOptionsで引き渡されます.オプションインスペクタではButtonBoxOptionsは以下のところにリストされています.
    書式設定(Formatting Options)→式の書式(Expression Formatting)
    →特定ボックスの設定(Special Box Options)→ボタンボックスの設定(ButtonBoxOptions)
    
  • メニュー一覧オプション(StyleMenuListingとButtonStyleMenuListing).ButtonStyleのスタイル定義は以下のようになっていなければなりません.
    StyleMenuListing->None
    
    これにより「書式(Format)」→「スタイル(Style)」メニューの中に現れなくなります.また,
    ButtonStyleMenuListing->Automatic
    
    これにより,「入力(Input)」→「ボタンの作成(Create Button)」の中に現れるようになります.このどちらのオプションもオプションインスペクタにはリストされていません.セルをアンフォーマットして,このオプションを加えたり変更したりしなければなりません.

    http://support.wolfram.co.jp/mathematica/interface/options/unformattoedit.html






 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [en]