LISTBOX SET PROPERTY
LISTBOX SET PROPERTY ( {* ;} object ; property ; value )
引数 | 型 | 説明 | |
---|---|---|---|
* | 演算子 | → | 指定時、object はオブジェクト名(文字列)。 省略時、object は変数 |
object | any | → | オブジェクト名 (* 指定時) または変数 (* 省略時) |
property | Integer | → | リストボックスまたはカラムのプロパティ |
value | Integer, Text | → | プロパティの値 |
説明
LISTBOX SET PROPERTY コマンドは、object および * 引数を使用して指定したリストボックスまたはリストボックスカラムの、property 引数で指定したプロパティの値を value の値で設定します。
オプションの引数 * を渡すことにより、object 引数がオブジェクト名(文字列)であることを示します。 この引数を渡さない場合、object 引数が変数であることを示します。 この場合、文字列ではなく変数参照を指定します。
注意: object および * で指定されたリストボックスまたはカラムが存在しない場合には、このコマンドは何もせず、エラーも生成されません。
property および value には、設定したいプロパティおよびその新しい値を指定します。 “List Box” テーマの次の定数を使用することができます:
定数 | 値 | 説明 |
---|---|---|
lk allow wordwrap | 14 | Wordwrap property Applies to: Column * Possible values: lk no (0) lk yes (1) |
lk auto row height | 31 | 配列型リストボックスの 自動行高 プロパティ 適用対象: リストボックスあるいはカラム 取りうる値: lk no (0) lk yes (1) |
lk background color expression | 22 | セレクション型、コレクションまたはエンティティセレクション型リストボックスの 背景色式 プロパティ 適用対象: リストボックスあるいはカラム |
lk cell horizontal padding | 36 | 横方向パディング プロパティ セル内の横方向パディング(ピクセル単位、左右のパディングで同じ値) 敵意用対象: リストボックス、カラム、ヘッダー、フッター |
lk cell vertical padding | 37 | 縦方向パディング プロパティ セルの縦方向パディング(ピクセル単位、上下のパディングで同じ値) 適用対象: リストボックス、カラム、ヘッダー、フッター |
lk column max width | 26 | 最大幅 プロパティ 適用先: カラム * |
lk column min width | 25 | 最小幅 プロパティ 適用対象: カラム * |
lk column resizable | 15 | Resizable property Applies to: Column * Possible values: lk no (0) lk yes (1) |
lk detail form name | 19 | セレクション型リストボックスの 詳細フォーム名 プロパティ 適用対象: リストボックス |
lk display footer | 8 | フッターを表示 プロパティ 適用対象: リストボックス 取り得る値: lk no (0): 非表示 lk yes (1): 表示 |
lk display header | 0 | ヘッダーを表示 プロパティ 適用対象: リストボックス 取り得る値: lk no (0): 非表示 lk yes (1): 表示 |
lk display type | 21 | Display Type property for numeric columns Applies to: Column * Possible values: lk numeric format (0): displays values in numeric format lk three states checkbox (1): displays values as three-state checkboxes |
lk double click on row | 18 | Double-click on row property for selection type list box Applies to: List box Possible values: lk do nothing (0): does not trigger any automatic action lk edit record (1): displays corresponding record in read-write mode lk display record (2): displays corresponding record in read-only mode |
lk extra rows | 13 | Hide extra blank rows property Applies to: List box Possible values: lk display (0) lk hide (1) |
lk font color expression | 23 | セレクション型、コレクションまたはエンティティセレクション型リストボックスの フォントカラー式 プロパティ 適用対象: リストボックスあるいはカラム |
lk font style expression | 24 | セレクション型、コレクションまたはエンティティセレクション型リストボックスの スタイル式 プロパティ 適用対象: リストボックスあるいはカラム |
lk hide selection highlight | 16 | Hide selection highlight property Applies to: List box Possible values: lk no (0) lk yes (1) |
lk highlight set | 27 | セレクション型リストボックスの セットをハイライト プロパティ 適用対象: リストボックス |
lk hor scrollbar height | 3 | 高さ(ピクセル単位) |
lk meta expression | 34 | コレクションまたはエンティティセレクション型リストボックスの メタ情報式 プロパティ 適用対象: リストボックス |
lk movable rows | 35 | Movable Rows property for array type list box Applies to: List box (excluding hierarchical mode) Possible values: lk no (0): Rows cannot be moved at runtime lk yes (1): Rows can be moved at runtime (default) |
lk multi style | 30 | Multi-style property Applies to: Column * Possible values: lk no (0) lk yes (1) |
lk named selection | 28 | セレクション型リストボックスの 命名セレクション プロパティ 適用対象: リストボックス |
lk resizing mode | 11 | Column Auto-Resizing property Applies to: List box Possible values: lk manual (0) lk automatic (2) |
lk row height unit | 17 | Unit of Row Height property Applies to: List box Possible values: lk lines (1) lk pixels (0) |
lk selection mode | 10 | Selection Mode property Applies to: List box Possible values: lk none (0) lk single (1) lk multiple (2) |
lk single click edit | 29 | シングルクリック編集 プロパティ 適用対象: リストボックス 取り得る値: lk no (0) lk yes (1) |
lk sortable | 20 | Sortable property Applies to: List box Possible values: lk no (0) lk yes (1) |
lk truncate | 12 | Truncate with ellipsis property Applies to: List box or column Possible values: lk without ellipsis (0) lk with ellipsis (1) |
lk ver scrollbar width | 5 | 幅(ピクセル単位) |
lk current item expression | 38 | カレントの項目 プロパティ 適用対象: リストボックス(コレクション / エンティティセレクション) |
lk current item pos expression | 39 | カレントの項目の位置 プロパティ 適用対象: リストボックス(コレクション / エンティティセレクション) |
lk selected items expression | 40 | 選択された項目 プロパティ 適用対象: リストボックス(コレクション / エンティティセレクション) |
* These properties can only be applied to list box columns; however, if you pass a list box as parameter, LISTBOX SET PROPERTY applies the property to each column of the list box.
注意: property に存在しない定数または、指定のリストボックスおよびカラムに提供されていないプロパティの定数をを受け渡した場合、例えば、lk font color expression を配列型リストボックスと一緒に指定したような場合には、コマンドは何もせず、エラーも生成されません。
例題 1
"MyLisbox" というリストボックスのカラムをすべてリサイズ可能に設定します:
LISTBOX SET PROPERTY(*;"MyListbox";lk column resizable;lk yes) // "MyListbox" の全カラムがリサイズ可能に設定されます
例題 2
"ProductNumber" というカラムの幅の最大値を設定します:
LISTBOX SET PROPERTY(*;"ProductNumber";lk column max width;200) // カラムの幅の最大値が 200 に設定されます
参照
List Box
LISTBOX Get property
プロパティ
コマンド番号 | 1440 |
スレッドセーフ | ✗ |