combogadgets very slow
Posted: Sun Oct 15, 2017 4:00 pm
When using a combogadget to allow the user to select from a list when there are a lot of items the combo becomes unusable.
Tested on ubuntu 16.04.3LTS and PB5.45LTS.
Just try the above. Then reduce the number to 10 and it is reasonable.
It seems that the automatic resizing is taking a very long time making combogadgets unusable on older hardware.
Can the combogadget be created with a fixed width hopefully preventing the interminable resizeing code from running?
Tested on ubuntu 16.04.3LTS and PB5.45LTS.
Code: Select all
Global Window_0
Global Combo_0,iLoop
Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, "", #PB_Window_SystemMenu)
Combo_0 = ComboBoxGadget(#PB_Any, 120, 20, 170, 20)
For iLoop = 0 To 1000
AddGadgetItem(Combo_0,-1,"Item Number " + Str(iLoop))
Next iLoop
Repeat
Event = WaitWindowEvent()
Select Event
Case #PB_Event_CloseWindow
End
EndSelect
ForEverIt seems that the automatic resizing is taking a very long time making combogadgets unusable on older hardware.
Can the combogadget be created with a fixed width hopefully preventing the interminable resizeing code from running?