when i write in the IDE the Prefix "SDL::" it adds hundreds of entries in the suggestion-box and the IDE hang a little bit - really annoying.
in autocomplete.pb
Code: Select all
; add items and find the closest item to select
ClearGadgetItems(#GADGET_AutoComplete_List)
SelectElement(AutoCompleteList(), AutoComplete_Start)
Repeat
AddGadgetItem(#GADGET_AutoComplete_List, -1, AutoCompleteList())
Until ListIndex(AutoCompleteList()) = AutoComplete_End Or NextElement(AutoCompleteList()) = 0
Code: Select all
#maxLimitAutoComplete = 50
; add items and find the closest item to select
ClearGadgetItems(#GADGET_AutoComplete_List)
SelectElement(AutoCompleteList(), AutoComplete_Start)
If AutoComplete_End - AutoComplete_Start > #maxLimitAutoComplete
AutoComplete_End = AutoComplete_Start + #maxLimitAutoComplete
endif
Repeat
AddGadgetItem(#GADGET_AutoComplete_List, -1, AutoCompleteList())
Until ListIndex(AutoCompleteList()) >= AutoComplete_End Or NextElement(AutoCompleteList()) = 0 ; i think >= is more "secure" than "="