Another combogadget bug
Posted: Tue Oct 10, 2017 5:47 am
ubuntu 16.04LTS PB 5.61
After loading, a combogadget has extra whitespace at the top obvious only on first use. Clicking in this whitespace selects the first item and all works fine. After selection reclicking the combo gadget does not display this whitespace.
On first use when the list is displayed scrolling through the list until the whitespace disappears, the white space no longer esxists and all is normal. The code below shows this. All works fine on windows(64bit)
cd
After loading, a combogadget has extra whitespace at the top obvious only on first use. Clicking in this whitespace selects the first item and all works fine. After selection reclicking the combo gadget does not display this whitespace.
On first use when the list is displayed scrolling through the list until the whitespace disappears, the white space no longer esxists and all is normal. The code below shows this. All works fine on windows(64bit)
Code: Select all
Global Window_0
Global Combo_0
Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, "", #PB_Window_SystemMenu)
Combo_0 = ComboBoxGadget(#PB_Any, 200, 70, 80, 20)
For iLoop = 0 To 40
AddGadgetItem(Combo_0,-1,"Item Number " + Str(iLoop))
Next iLoop
Repeat
Event = WaitWindowEvent()
Select Event
Case #PB_Event_CloseWindow
End
EndSelect
ForEver