利用可能なWin32 UI要素

<< 目次を表示 >>

ページ位置:  シミュレーション > 振る舞いモデルのシミュレーション > Win32画面設計のシミュレーション >

利用可能なWin32 UI要素

このページでは、シミュレーションで利用可能なWin32要素を紹介します。

 

 

利用手順:

リボン

モデル > ダイアグラム > ツールボックス > メニューボタン > Win32 画面設計

キーボード

Ctrl + Shift + 3 :  メニューボタン | Win32 画面設計

 

 

利用可能なWin32 UI コントロールとその内容

項目

説明

ボタン

ボタンは、シミュレーションの実行時に処理を実行するためのトリガとして利用できる基本的な要素です。例えば、ログイン画面に配置されるOKボタンが該当します。

ボタンがクリックされたときに実行する処理は、タグ付き値'OnClick'に記述します。

 

クリックイベントに対応して実行する処理の例としては、シグナルの送信があります。

 

表示内容を調整するプロパティ:

  • Client Edge
  • Default Button
  • Disabled
  • Flat
  • Horizontal Alignment
  • Modal Frame
  • Multiline
  • Right Align Text
  • Right To Left Reading Order
  • Static Edge
  • Tabstop
  • Transparent
  • Vertical Alignment
  • Visible

 

タグ付き値:

  • OnClick – ボタンがクリックされたときの処理をJavascriptで記述します。

 

プロパティ:

  • Enable
  • Show
  • Text

 

操作:

  • MoveTo

チェックボックス

表示内容を調整するプロパティ:

  • Auto
  • Client Edge
  • Disabled
  • Flat
  • Horizontal Alignment
  • Left Text
  • Modal Frame
  • Multiline
  • Right Align Text
  • Right To Left Reading Order
  • Static Edge
  • Tabstop
  • Vertical Alignment
  • Visible

 

タグ付き値:

  • OnCheck – チェックボックスの状態が変わったときの処理をJavascriptで記述します。

 

プロパティ:

  • Checker – 数値: [0|1]
  • Enable
  • Show
  • Text

コンボボックス

表示内容を調整するプロパティ:

  • Auto
  • Client Edge
  • Data – 実行時に選択肢として表示される内容を、セミコロン区切りで指定します。

例  "yes;no;maybe"

  • Disabled
  • Has Strings
  • Lowercase
  • Modal Frame
  • Right Align Text
  • Right To Left Reading Order
  • Sort
  • Static Edge
  • Tabstop
  • Type
  • Uppercase
  • Vertical Scroll
  • Visible

 

操作

  • AddString (string)
  • DeleteAll ()
  • DeleteItem (number) – 指定したインデックスの項目を削除します。
  • DeleteString (string) – 文字列に一致する項目を削除します。
  • GetCount ()
  • GetString (number)
  • InsertItem (number, string)
  • InsertString (number, string)
  • SetString (number, string)

 

プロパティ:

  • Enable
  • Selection – 選択されている要素のインデックスの値です。
  • Show

ダイアログ

表示内容を調整するプロパティ:

  • Absolute Align
  • Application Window
  • Border - Resizing あるいは Dialog Frame です。
  • Center
  • Client Edge
  • Center Mouse
  • Clip Siblings
  • Disabled
  • Horizontal Scrollbar
  • Left Scrollbar
  • Local Edit
  • Maximize Box
  • Minimise Box
  • No Activate
  • Overlapped Window
  • Palette Window
  • Right Align Text
  • Right To Left Reading Order
  • Set Foreground
  • System Menu
  • System Modal
  • Title Bar
  • Tool Window
  • Topmost
  • Transparent
  • Vertical Scrollbar
  • Visible
  • Window Edge

 

プロパティ:

  • Enable
  • Show
  • Text

 

操作:

  • MoveTo

エディットコントロール・リッチエディットコントール

表示内容を調整するプロパティ

  • Align Text
  • Auto HScroll
  • Auto VScroll
  • Border
  • Client Edge
  • Disabled
  • Lowercase (エディットコントロールのみ)
  • Modal Frame
  • Multiline
  • Number
  • Password
  • Read Only
  • Right Align Text
  • Right To Left Reading Order
  • Static Edge
  • Tabstop
  • Transparent
  • Uppercase (エディットコントロールのみ)
  • Visible
  • Want Return

 

プロパティ:

  • Enable
  • Show
  • Text

グループボックス

表示内容を調整するプロパティ:

  • Client Edge
  • Disabled
  • Flat
  • Horizontal Alignment
  • Modal Frame
  • Right Align Text
  • Static Edge
  • Tabstop
  • Visible

 

プロパティ:

  • Enable
  • Show
  • Text

リストボックス

表示内容を調整するプロパティ:

  • Border
  • Client Edge
  • Disable No Scroll
  • Disabled
  • Left Scrollbar
  • Modal Frame
  • Right Align Text
  • Selection
  • Sort
  • Static Edge
  • Tabstop
  • Vertical Scroll
  • Visible

 

操作:

  • AddString (string)
  • DeleteAll ()
  • DeleteItem (number) – 指定したインデックスの項目を削除します。
  • DeleteString (string) – 指定した文字列の項目を削除します。
  • GetCount ()
  • GetString (number)
  • InsertItem (number, string)
  • InsertString (number, string)
  • SetString (number, string)

 

プロパティ:

  • Enable
  • Selection – 選択されている項目のインデックスの値です。
  • Show

リストコントロール

表示内容を調整するプロパティ:

  • Alignment
  • Always Show Selection
  • Border
  • Client Edge
  • Disabled
  • Edit Labels
  • Left Scrollbar

 

  • Modal Frame
  • No Column Header
  • No Scroll
  • Single Selection
  • Sort
  • Static Edge
  • Tabstop
  • View

 

  • Visible

 

タグ付き値:

  • Columns – 列の名前と列の幅をセミコロン区切りで指定します。

  例: "Column1;100;Column2;150;"

 

操作:

  • AddString (string)
  • DeleteAll ()
  • DeleteItem (number) – 指定したインデックスの項目を削除します。
  • DeleteString (string) – 指定した文字列の項目を削除します。
  • GetCount ()
  • GetString (number, number)
  • InsertItem (number, string)
  • InsertString (number, string)
  • SetString (number, number, string)

 

プロパティ:

  • Enable
  • Selection – 選択されている項目のインデックスの値です。
  • Show

画像コントロール

画像コントロールの既定の画像は、タグ付き値'Image'で設定できます。この値には、実際に参照可能なファイル名を設定します。画像はJavaScriptのChangeImageFileメソッドを使って実行時に変更できます。このメソッドには、読み込むファイル名の文字列パラメータを1つ指定します。

 

Image Typeタグ付き値に画像の正しい種類(Bitmap,Enhanced Metafile,Iconのいずれか)を設定します。この設定は実行時に変更することはできません。

 

タグ付き値:

  • Border
  • Center Image
  • Client Edge
  • Color (frame color)
  • Disabled
  • Image Type
  • Modal Frame
  • Real Size Image
  • Static Edge
  • Tabstop
  • View
  • Visible

 

操作:

  • ChangeImageFile (string) - ファイル名

 

プロパティ:

  • Show

プログレスバー

表示内容を調整するプロパティ:

  • Border
  • Client Edge
  • Disabled
  • Marquee
  • Modal Frame
  • Smooth
  • Static Edge
  • Tabstop
  • Vertical
  • Visible

 

タグ付き値:

  • Range – 最小値と最大値をセミコロン区切りで指定します。例: "1;100"

 

プロパティ:

  • Enable
  • Pos
  • Range
  • Show
  • Step

ラジオボタン

表示内容を調整するプロパティ:

  • Auto
  • Client Edge
  • Disabled
  • Flat
  • Group
  • Horizontal Alignment
  • Left Text
  • Modal Frame
  • Multiline
  • Static Edge
  • Tabstop
  • Vertical Alignment
  • Visible

 

タグ付き値:

  • OnChangeSelection – 選択状態が変更されたときに実行するJavascriptを指定します。

 

プロパティ:

  • Checked – 数値: [0|1]
  • Enable
  • Selection – 数値:
  • Show

スライダーコントロール

表示内容を調整するプロパティ:

  • Auto Tick
  • Border
  • Client Edge
  • Disabled
  • Enable Selection Range
  • Modal Frame
  • Orientation
  • Point
  • Static Edge
  • Tabstop
  • Tick Marks
  • Transparent
  • Transparent Background
  • Tooltips
  • Visible

 

タグ付き値:

  • Range – 最小値と最大値をセミコロン区切りで指定します。例:  "1;100"

 

プロパティ:

  • Enable
  • PageSize
  • Pos
  • Range
  • Show

スピンコントロール

表示内容を調整するプロパティ:

  • Alignment
  • Arrow Keys
  • Auto Buddy
  • Client Edge
  • Disabled
  • Modal Frame
  • No Thousands
  • Orientation
  • Set Buddy Integer
  • Static Edge
  • Tabstop
  • Visible
  • Wrap

 

タグ付き値:

  • Range – 最小値と最大値をセミコロン区切りで指定します。例: "1;100"

 

プロパティ:

  • Enable
  • Pos
  • Range
  • Show

テキスト・ラベル

表示内容を調整するプロパティ:

  • Align Text
  • Border
  • Client Edge
  • Disabled
  • End Ellipsis
  • Modal Frame
  • Path Ellipsis
  • No Wrap
  • Notify
  • Path Ellipsis
  • Right Align Text
  • Simple
  • Static Edge
  • Sunken
  • Tabstop
  • Visible
  • Word Ellipsis

 

プロパティ:

  • Enable
  • Show
  • Text

タブコントロール

表示内容を調整するプロパティ:

  • Border
  • Bottom
  • Buttons
  • Client Edge
  • Disabled
  • Flat Buttons
  • Focus
  • Hot Track
  • Model Frame
  • Multiline
  • Right Align Text
  • Static Edge
  • Style
  • Tabstop
  • Tooltips
  • Visible

 

タグ付き値:

  • Tabs – タブ名をセミコロン区切りで指定します。例:  "Tab 1;Tab 2;Tab 3;"

 

プロパティ:

  • Enable
  • Show

ツリーコントロール

表示内容を調整するプロパティ:

  • Always Show Selection
  • Border
  • Check Boxes
  • Client Edge
  • Disable Drag Drop
  • Disabled
  • Edit Labels
  • Full Row Select
  • Has Buttons
  • Has Lines
  • Horizontal Scroll
  • Left Scrollbar
  • Lines At Root
  • Modal Frame
  • Right Align Text
  • Right To Left Reading Order
  • Scroll
  • Single Expand
  • Static Edge
  • Tabstop
  • Tooltips
  • Track Select
  • Visible

 

操作:

  • Delete () - 指定した項目を削除します。
  • InsertItem (string) - ピリオドで区切ったパスを指定します。そのパスの内容を追加します。親となる項目が存在しない場合には、自動的に親となる項目も追加します。
  • InsertString (string) - InsertItemと同じです。
  • TreeItem (string) - ピリオドで区切ったパスを指定します。その内容に対して、Textで文字列を取得あるいは設定したり、Deleteで削除したりすることができます。

 

プロパティ:

  • Enable
  • Selection – 選択されている項目を、ピリオドで区切ったパス情報で返します。
  • Show
  • Text – 対象の項目の文字列(名前)です。

 

例:

dialog.MyDialog.MyTreeControl.InsertItem("Root.Parent.Child");

dialog.MyDialog.MyTreeControl.TreeItem("Root.Parent.Child").Text = "Modified";

dialog.MyDialog.MyTreeControl.Selection = "Root.Parent";

dialog.MyDialog.MyTreeControl.TreeItem("Root.Parent.Modified")

.Delete();

 

 

参照: