DropDown - AutoSuggesting Event

Member of DropDown (PRIM_MD.Dropdown)

Details

The AutoSuggesting event provides an opportunity for the value to be completed as the user types.

Example

In this example, the set of available items in the drop down is filtered based on the value entered.

     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

See also

All Component Classes

Technical Reference

  • No labels