Found an issue in SpiderBasic ? Please report it here !
Geert
 
Posts: 7
Joined: Sat Dec 26, 2015 10:17 am

RemoveGadgetItem does not work with a ComBoboxGadget

by Geert Thu May 28, 2020 9:31 am

RemoveGadgetItem does not work on a ComBoboxGadget.
No problem with a ListViewGadget.

Code: Select all
Procedure Button_Event()
 RemoveGadgetItem(0,0)
 RemoveGadgetItem(1,0)
EndProcedure

If OpenWindow(0, 10, 10, 140, 215, "Window 1", #PB_Window_SystemMenu)
 ComboBoxGadget(0, 20, 20, 100, 25) ;#PB_ComboBox_Editable flag makes no difference
 ListViewGadget(1, 20, 65, 100, 125)
 For i=0 To 5
  AddGadgetItem(0,-1,"Item "+Str(i))
  AddGadgetItem(1,-1,"Item "+Str(i))
 Next
 SetGadgetState (0, 0)
 If OpenWindow(1, 160, 10, 240, 70, "Window 2", #PB_Window_SystemMenu)
  ButtonGadget(2, 20, 20, 200, 25, "Remove item 0")
  BindGadgetEvent(2,@Button_Event())
 EndIf
EndIf
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 1 guest