ブラシ色
祖先 - オブジェクト (PRIM_OBJT)
BrushColors は、 BrushColor のインスタンスを収集し、 Linear ブラシと Radial グラデーションブラシで1つの色から別の色への遷移を記述します。
This abstraction allows same set of colors to be used on multiple Styles
There is no restriction on the number of colors that can be added to a brush.
The sample below changes from red at the start to blue at the end. This is denoted by the use of At(100) on the second color (#BrushColor2).
As the transition is uniform the red channel is decremented from 255 to 0 while the blue channel increases from 0 to 255. The result is that at the mid-point the color will be 128:0:128, which is purple.
The IDE will manage the creation of styles and brushes. This code is provided for reference purposes.
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(457) Width(1169) Style(#Style1)
Define_Com Class(#PRIM_VS.Style) Name(#Style1) Backgroundbrush(#LinearBrush1)
Define_Com Class(#PRIM_VS.LinearBrush) Name(#LinearBrush1) Colors(#BrushColors1)
Define_Com Class(#PRIM_VS.BrushColors) Name(#BrushColors1)
Define_Com Class(#PRIM_VS.BrushColor) Name(#BrushColor1) Color(255:0:0) Parent(#BrushColors1)
Define_Com Class(#PRIM_VS.BrushColor) Name(#BrushColor2) At(100) Color(0:0:255) Parent(#BrushColors1)
End_Com
名前 |
記述 |
グラデーションブラシで使用された色のコレクション |
|
コンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承 |
|
このコンポーネントの全てにアクセスできるようにします。 オブジェクト (PRIM_OBJT) より継承 |
|
コンポーネントのクラスを制限します。 オブジェクト (PRIM_OBJT) より継承 |
|
インスタンス用に値を格納できる汎用スペース オブジェクト (PRIM_OBJT) より継承 |
|
ComponentTypeではコンポーネントのタイプ情報にアクセスできます。 オブジェクト (PRIM_OBJT) より継承 |
|
ComponentTypeName十分適格なコンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承 |
|
コンポーネントの名前 オブジェクト (PRIM_OBJT) より継承 |
|
コンポーネントのオーナーです。 オブジェクト (PRIM_OBJT) より継承 |
|
このインスタンスが添付されているコンポーネントインスタンス。コントロールのビジュアルコンテナまたは子インスタンスのコレクション オブジェクト (PRIM_OBJT) より継承 |
名前 |
記述 |
コンポーネントを作成する時にCreateInstanceのイベントを実行します。 オブジェクト (PRIM_OBJT) より継承 |
|
コンポーネントが解除される前にDestroyInstanceのイベントを実行します。 オブジェクト (PRIM_OBJT) より継承 |