[SB 1.10] ComboBoxGadget

Just starting out? Need help? Post your questions and find answers here.
Geert
Posts: 15
Joined: Sat Dec 26, 2015 10:17 am

[SB 1.10] ComboBoxGadget

Post 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
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: [SB 1.10] ComboBoxGadget

Post by Fred »

Geert
Posts: 15
Joined: Sat Dec 26, 2015 10:17 am

Re: [SB 1.10] ComboBoxGadget

Post by Geert »

The fix works both with Safari and Firefox. Thanks.
User avatar
DjPoke
Posts: 22
Joined: Sat Dec 19, 2015 5:27 pm
Location: France (Corsica)
Contact:

Re: [SB 1.10] ComboBoxGadget

Post 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.
My Freewares here :
http://retro-bruno.fr/
Post Reply