ドロップダウン - AutoSuggestingイベント
値が変更された時に短い時間をおいて起動します
ドロップダウン (PRIM_MD.Dropdown) のメンバ
詳細
AutoSuggesting イベントにより、ユーザーはタイプしている間に値を完成できる機会が提供されます。
例
次の例では、入力された値をベースにドロップダウンの使用可能なアイテム一式がフィルターされています。
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(456) Width(864)
Define_Com Class(#PRIM_MD.Dropdown) Name(#DropDown) DisplayPosition(1) Label('Label') Left(63) Parent(#COM_OWNER) TabPosition(1) Top(32) Width(290) PromptOnly(False)
Evtroutine Handling(#Com_owner.CreateInstance)
Begin_Loop To(100)
#DropDown.Items.Add( ("Item &1").Substitute( #DropDown.Items.ItemCount.AsString ) )
End_Loop
Endroutine
Evtroutine Handling(#DropDown.AutoSuggesting)
For Each(#Item) In(#DropDown.Items)
#Item.Visible := #Item.Value.Contains( #DropDown.Value )
Endfor
Endroutine
End_Com