CheckButton と RadioButton にそれぞれ使用される四角形と円形のグラフィックのベースクラス。
ビジュアル オブジェクトには必ず color オプションがあります。このオプションは、継承されたものか、あるいはオブジェクトに直接設定されたものです。GUI Toolkit では、このオプションを使って ビジュアル オブジェクトによっては、color プロパティを直接使用しないものがあります。たとえば、 |
このオプションは、コントロール内容が背景を持つ場合にその色を制御します。 |
無効なオブジェクトの描画に使用される色。 |
指定した高さの制約を受けた場合にこの |
指定した高さの制約を受けた場合にこの |
指定されたポイントで発生するイベントが、ターゲット ボックスと、そのいずれかのグラフィカルな子のどちらに関するものかを判断します。 |
このオブジェクトの可視表現を描画します。 |
この |
この |
描画する |
ビジュアル オブジェクトには必ず color オプションがあります。このオプションは、継承されたものか、あるいはオブジェクトに直接設定されたものです。GUI Toolkit では、このオプションを使って
ビジュアル オブジェクトによっては、color プロパティを直接使用しないものがあります。たとえば、
説明
例
例 | |
{VBox background="silver", color="green", {text The default color in this VBox is {bold green}.}, {Rule height=1pt}, {text The thick Rule below is {bold yellow}.}, {Rule color="yellow", height=3pt}, {text color = "blue", Next are two ellipse's, with and without a color setting }, {HBox spacing=6pt, {EllipticalArcGraphic width=1in, height=0.5in, color = "aqua" }, {EllipticalArcGraphic width=1in, height=0.5in } } } |
説明
例
例 | |
{def samples = {HBox valign="bottom", spacing = 4pt, control-appearance-changeable? = true, control-color = "cornflowerblue", {CommandButton label = "Sample Button"}, {CheckButton label = "Sample"}, {Scrollbar width = .8in, direction = "horizontal"}, {ComboBox width = 1.2in, prompt = "Choose One", "First", "Second", "Third" }, {TextField width = 1.0in, value = "Sample text"} } } {install-style-sheet-on-Graphic samples, null, look-and-feel = the-standard-look-and-feel } |
このオプションは、コントロール内容が背景を持つ場合にその色を制御します。
例
例: control-content-background の指定 | |
{HBox valign="bottom", spacing=4pt, control-appearance-changeable?=true, control-content-background="yellow", {ComboBox width=1.2in, prompt="Choose One", "First", "Second"}, {TextField width=1.0in, value="Sample text"} } |
無効なオブジェクトの描画に使用される色。
説明
説明
例
例 | |
{paragraph I am enabled} {paragraph enabled? = false, I'm not} |
例
例 | |
{radio-buttons value = "first", {RadioButton radio-value = "first"}, {RadioButton radio-value = "second", reactive-label = {ReactiveLabel label-disabled = "(second)" }, enabled? = false }, {RadioButton radio-value = "third"} } |
プログラミング注意事項
オーバーライド
プログラミング注意事項
オーバーライド
指定した高さの制約を受けた場合にこの
戻り値
オーバーライド
指定した高さの制約を受けた場合にこの
戻り値
オーバーライド
指定されたポイントで発生するイベントが、ターゲット ボックスと、そのいずれかのグラフィカルな子のどちらに関するものかを判断します。
プログラミング注意事項
注意事項
このオブジェクトの可視表現を描画します。
オーバーライド
この
戻り値
オーバーライド
この
戻り値
オーバーライド
描画する
注意事項
プログラミング注意事項
オーバーライド