Page 1 of 1

[SB 1.10] ComboBoxGadget

Posted: Sat Dec 26, 2015 10:42 am
by Geert
[SB 1.10 on MacOSX 10.11.2 Safari/Firefox] Selecting an other item in a ComboBox, doesn't change the current displayed item. Also no events are triggered.

Code: Select all

Procedure Combo_ChangeEvent()
 Debug GetGadgetState(0)
EndProcedure 

If OpenWindow(0, 0, 0, 270, 180, "ComboBoxGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
 
 ComboBoxGadget(0, 10, 10, 250, 21)
 For a = 1 To 5
  AddGadgetItem(0, -1,"Item " + Str(a))
 Next
 
 SetGadgetState(0, 1)
 
 BindGadgetEvent(0,@Combo_ChangeEvent(),#PB_EventType_Change)
EndIf

Re: [SB 1.10] ComboBoxGadget

Posted: Sat Dec 26, 2015 5:32 pm
by Fred

Re: [SB 1.10] ComboBoxGadget

Posted: Mon Dec 28, 2015 3:49 pm
by Geert
The fix works both with Safari and Firefox. Thanks.

Re: [SB 1.10] ComboBoxGadget

Posted: Wed Jan 13, 2016 9:21 pm
by DjPoke
This fix works also with Android, but not ipad. (safari & chrome)
On ipad, the arrow to open the combobox does not open it, but the combobox is selected in blue.

EDIT:
If i make the combobox editable, the problem is partially solved.
When i type text inside, the combobox open itself.
But the arrow still does not react.