Page History
...
祖先 - PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) オブジェクト (PRIM_OBJT)
詳細
Prim_List.Checkbox は、チェックボックスとして視覚化されたリスト内の列です。
各列タイプには、列インスタンスへのアクセスを提供する対応する列クラスがあります。は、チェックボックスとして視覚化されたリスト内の列です。
各列タイプには、列インスタンスへのアクセスを提供する対応する列クラスがあります。
他のビジュアル LANSA リストでリストの現在の項目を使用できるのと同じように、各項目のチェックボックスは、列の現在の項目を使用して個別に変更できます。
チェックボックス列は、チェック ボックスがコントロール ビューからドラッグ アンド ドロップされるたびに作成されます。Prim_List.Checkbox is a column in a List that is visualized as a checkbox.
Each column type has a corresponding Column class that provides access to the column instance.
The checkbox for each item can be modified independently using the current item for the column in the same way that other visual LANSA lists allow the current item for the list to be used. A checkbox column is created whenever a Check Box is dragged and dropped from the controls view.
例
...
例
この例では、チェックボックスがリストに追加された後に各チェックボックスを更新する単一列リストを示します。
チェックボックスをクリックすると、列の現在の項目にアクセスし、列のキャプションにクリックされたチェックボックスが表示されます。
Begin_Com Role(*EXTENDS #PRIM_WEB)
Define_Com Class(#PRIM_LIST) Name(#List1) Displayposition(1) Left(24) Parent(#COM_OWNER) Tabposition(1) Top(24) Height(337) Width(609)
Define_Com Class(#PRIM_LIST.checkbox) Name(#ColumnCheckbox1) Columnwidth(128) Displayposition(1) Parent(#List1)
Evtroutine Handling(#Com_owner.CreateInstance)
Begin_Loop To(10)
Add_Entry To_List(#List1)
#ColumnCheckbox1.CurrentItem.ButtonState := Checked
End_Loop
Endroutine
Evtroutine Handling(#ColumnCheckbox1.Click)
#ColumnCheckbox1.ColumnCaption := #ColumnCheckbox1.CurrentItem.ButtonState
Endroutine
End_Com
プロパティ
イベント
名前 | 記述 |
|---|---|
コンポーネントを作成する時にCreateInstanceのイベントを実行します。 PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承 | |
コンポーネントが解除される前にDestroyInstanceのイベントを実行します。 PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承 |
メソッド
名前 | 記述 |
|---|---|
リストのcurrentitemにフォーカスを設定します。 PRIM_LIST.CurrentItemクラス (PRIM_LIST.CurrentItem) より継承 |