Found an issue in SpiderBasic ? Please report it here !
MarkOtt
 
Posts: 10
Joined: Thu Sep 14, 2017 12:59 pm

PanelGadget: AddGadgetItem with position -1 same as 0

by MarkOtt Fri Feb 22, 2019 4:56 pm

SpiderBasic 2.21, downloaded 22 Feb 2019

PanelGadget: AddGadgetItem with position -1 does not work, is the same as 0, always adds a tab at the beginning (left) instead of the end (right) :

Code: Select all
  If OpenWindow(0, 0, 0, 322, 220, "PanelGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    PanelGadget     (0, 8, 8, 306, 203)
      AddGadgetItem (0, -1, "Panel 1")
      AddGadgetItem (0, -1, "Panel 2")
      AddGadgetItem (0, -1, "Panel 3")
    CloseGadgetList()
  EndIf


Image


Best regards
Markus
❤x1
 
Posts: 6
Joined: Sat Feb 09, 2019 5:42 am

Re: PanelGadget: AddGadgetItem with position -1 same as 0

by ❤x1 Fri Feb 22, 2019 5:41 pm

Confirmed; while waiting for the fix, replace -1 with CountGadgetItems(0) for a simple workaround.
MarkOtt
 
Posts: 10
Joined: Thu Sep 14, 2017 12:59 pm

Re: PanelGadget: AddGadgetItem with position -1 same as 0

by MarkOtt Mon Feb 25, 2019 12:57 pm

Thank you ❤x1 for your useful hint.

Best regards
Markus
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 2 guests