ブラシ色
祖先 - ブジェクト (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
名前 | 記述 |
---|---|
Colors | グラデーション ブラシで使用された色のコレクション |
ComponentClassName | コンポーネントのクラス名です。 ブジェクト (PRIM_OBJT) より継承 |
ComponentMembers | このコンポーネントの全てにアクセスできるようにします。 ブジェクト (PRIM_OBJT) より継承 |
ComponentPatternName | コンポーネントのクラスを制限します。 ブジェクト (PRIM_OBJT) より継承 |
ComponentTag | インスタンス用に値を格納できる汎用スペース ブジェクト (PRIM_OBJT) より継承 |
ComponentType | ComponentType ではコンポーネントのタイプ情報にアクセスできます。 ブジェクト (PRIM_OBJT) より継承 |
ComponentTypeName | ComponentTypeName 十分適格なコンポーネントのクラス名です。 ブジェクト (PRIM_OBJT) より継承 |
Name | コンポーネントの名前 ブジェクト (PRIM_OBJT) より継承 |
Owner | コンポーネントのオーナーです。 ブジェクト (PRIM_OBJT) より継承 |
Parent | このインスタンスが添付されているコンポーネント インスタンス。コントロールのビジュアル コンテナまたは子インスタンスのコレクション ブジェクト (PRIM_OBJT) より継承 |
名前 | 記述 |
---|---|
CreateInstance | コンポーネントを作成する時に CreateInstance のイベントを実行します。 ブジェクト (PRIM_OBJT) より継承 |
DestroyInstance | コンポーネントが解除される前に DestroyInstance のイベントを実行します。 ブジェクト (PRIM_OBJT) より継承 |
2018 - V14SP1