ビジュアル オブジェクトには必ず 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 } } } |