テーマ (PRIM_THM)

アプリケーション外観のベースとして使用されるスタイル

祖先 - オブジェクト (PRIM_OBJT)

詳細

A Theme is a collection of DrawStyles used to configure the appearance and behavior of controls and features of an application.  It is akin to a typical CSS file defined for a web page, providing a central point in which to define the vast majority, if not all, of the styles required in an application.
 
A range of predefined System Themes is shipped with the product providing a base set of colors based on the Google Material Design guidelines. The default theme for Web Pages is 2015Gray. These themes may be entirely adequate for many applications and can be applied with little more than a click or two in the IDE by selecting the required theme from the ribbon.
 
Default themes can be extended by creating a user Themes. A different BaseTheme can be adopted as required, and the default DrawStyles can be modified to implement whatever color scheme is required. In addition, DrawStyles can be created to suit whatever formatting option is desired.
 
Themes are tightly integrated with the IDE. When a Theme is applied to a Web Page for example, the controls and features of the application will immediately respond appearing as they would at runtime. Controls subsequently added to the page will also appear correctly. While a Web Page has the Theme specified, individual reusable parts are designed in isolation with no knowledge of the Theme to be used at run time. To simplify the design process and to bring it in to line with designing a page, the IDE supports a Design Theme. By specifying a design Theme, the IDE is given a context, allowing reusable parts to appear correctly.
 
The Color Palette of a Theme can be modified, but with the exception of the Text, Border and Line colors, it is recommended that new DrawStyles be created.

プロパティ

名前記述
BaseTheme基本スタイルおよび色として使用する LANSA 提供のテーマ
ComponentClassNameコンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承
ComponentMembersこのコンポーネントの全てにアクセスできるようにします。 オブジェクト (PRIM_OBJT) より継承
ComponentPatternNameコンポーネントのクラスを制限します。 オブジェクト (PRIM_OBJT) より継承
ComponentTagインスタンス用に値を格納できる汎用スペース オブジェクト (PRIM_OBJT) より継承
ComponentTypeComponentType ではコンポーネントのタイプ情報にアクセスできます。 オブジェクト (PRIM_OBJT) より継承
ComponentTypeNameComponentTypeName 十分適格なコンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承
Nameコンポーネントの名前 オブジェクト (PRIM_OBJT) より継承
Ownerコンポーネントのオーナーです。 オブジェクト (PRIM_OBJT) より継承
Parentこのインスタンスが添付されているコンポーネント インスタンス。コントロールのビジュアル コンテナまたは子インスタンスのコレクション オブジェクト (PRIM_OBJT) より継承
Styleテーマの省略値定義に使用するスタイルへの参照
Styles各スタイルにプログラムでアクセスできようにするテーマの省略値プロパティ
Theme100Color補足の事前定義の基本テーマ色の 1 つ
Theme200Color補足の事前定義の基本テーマ色の 1 つ
Theme300Color補足の事前定義の基本テーマ色の 1 つ
Theme400Color補足の事前定義の基本テーマ色の 1 つ
Theme500Color補足の事前定義の基本テーマ色の 1 つ
Theme50Color補足の事前定義の基本テーマ色の 1 つ
Theme600Color補足の事前定義の基本テーマ色の 1 つ
Theme700Color補足の事前定義の基本テーマ色の 1 つ
Theme800Color補足の事前定義の基本テーマ色の 1 つ
Theme900Color補足の事前定義の基本テーマ色の 1 つ
ThemeA100Color補足の事前定義の基本テーマ アクセント色の 1 つ
ThemeA200Color補足の事前定義の基本テーマ アクセント色の 1 つ
ThemeA400Color補足の事前定義の基本テーマ アクセント色の 1 つ
ThemeA700Color補足の事前定義の基本テーマ アクセント色の 1 つ
ThemeAccentDarkColor補足の事前定義の基本テーマ アクセント色の 1 つ
ThemeAccentLightColor補足の事前定義の基本テーマ アクセント色の 1 つ
ThemeAccentMediumColor補足の事前定義の基本テーマ アクセント色の 1 つ
ThemeBorderColor基本テーマ枠線色
ThemeDisabledColor無効な状態の基本テーマ色
ThemeErrorDarkColor補足の事前定義の基本テーマ エラー色の 1 つ
ThemeErrorLightColor補足の事前定義の基本テーマ エラー色の 1 つ
ThemeErrorMediumColor補足の事前定義の基本テーマ エラー色の 1 つ
ThemeInactiveColor非アクティブな状態の基本テーマ色
ThemeLineColor基本テーマ線色
ThemeSuccessDarkColor補足の事前定義の基本テーマ 正常終了色の 1 つ
ThemeSuccessLightColor補足の事前定義の基本テーマ 正常終了色の 1 つ
ThemeSuccessMediumColor補足の事前定義の基本テーマ 正常終了色の 1 つ
ThemeTextColor基本テーマ テキスト色
ThemeTextLightColor基本テーマのテキスト色

イベント

名前記述
CreateInstanceコンポーネントを作成する時に CreateInstance のイベントを実行します。 テーマ (PRIM_THM) より継承
DestroyInstanceコンポーネントが解除される前に DestroyInstance のイベントを実行します。 テーマ (PRIM_THM) より継承

参照

すべてのコンポーネント クラス

テクニカルリファレンス

EPC142030 January 2019