ドロップダウン - AutoSuggest イベント

値が変更された時に短い時間をおいて起動します

ドロップダウン (PRIM_MD.Dropdown) のメンバ

詳細

AutoSuggest イベントは、値が入力されている時に起動し、ユーザーに値を提案できるようになります。
 
このイベントは、キーが打たれる毎にというよりは、ユーザーがタイプを終えた時に起動します。

以下の例では、値の入力時に 10 件の連続したアイテムがドロップダウンに追加されます。
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(408) Width(809)
 
   Define_Com Class(#PRIM_MD.Dropdown) Name(#DropDown) DisplayPosition(1) Label('DropDown') Left(35) Parent(#COM_OWNER) TabPosition(1) Top(16) PromptOnly(False) Width(254) PromptPosition(Bottom)
 
   Evtroutine Handling(#DropDown.AutoSuggest)
 
      #DropDown.Items.RemoveAll
 
      Begin_Loop To(10)
 
         #DropDown.Items.Add( ("&1 &2").Substitute( #DropDown.Value (#DropDown.Items.ItemCount + 1).AsString ) )
 
      End_Loop
 
      #DropDown.OpenDropDown
 
   Endroutine
 
End_Com

参照

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

テクニカルリファレンス

EPC142030 February 2019