Thank you for your purchase, glad you like it

Thank you for your purchase, glad you like it
Then it's a feature requestCaronte3D wrote: Sat Feb 04, 2023 8:36 pm I tink it's not possible, you can only add or delete tabs.
Thankscptdark wrote: Sat Feb 04, 2023 8:16 pm Nice work, bought today.
One question: How to change tab order, or insert a Tab at specific position in a PanelGadget?
Okay, I'll try.ChrisR wrote: Mon Feb 06, 2023 4:30 pm Thanks![]()
It's actually possible to change the tab order through a new temporary tab and cut/paste all... but it's of course far from ideal.
I'm looking into how to change the order of the tabs.
And I should be able to do it, probably with 2 new options in the Panel Context Menu: "Move Tab to Left" and "Move Tab to Right"
Code: Select all
EnableExplicit
;- Enumerations
Enumeration Window
#Window_0
EndEnumeration
Enumeration Gadgets
#Btn_Jelly_Toggle_Button
#Btn_Regular_Toggle_Button
EndEnumeration
Enumeration Font
#Font_0
EndEnumeration
;- Load Fonts
LoadFont(#Font_0, "Calibri", 14, #PB_Font_Bold)
;- Declare
Declare Open_Window_0(X = 0, Y = 0, Width = 1200, Height = 800)
XIncludeFile "JellyButtons.pbi"
Procedure Open_Window_0(X = 0, Y = 0, Width = 1200, Height = 800)
If OpenWindow(#Window_0, X, Y, Width, Height, "Title", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget | #PB_Window_ScreenCentered)
SetWindowColor(#Window_0, $A8CAE3)
JellyButton(#Btn_Jelly_Toggle_Button, 150, 230, 370, 110, "Jelly Toggle Button", $141F54, $A8CAE3, #PB_Button_Toggle)
SetGadgetFont(#Btn_Jelly_Toggle_Button, FontID(#Font_0))
ButtonGadget(#Btn_Regular_Toggle_Button, 150, 360, 370, 110, "Regular Toggle Button", #PB_Button_Toggle)
SetGadgetFont(#Btn_Regular_Toggle_Button, FontID(#Font_0))
EndIf
EndProcedure
CompilerIf (#PB_Compiler_IsMainFile)
;- Main Program
Open_Window_0()
;- Event Loop
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
Break
;-> Event Gadget
Case #PB_Event_Gadget
Select EventGadget()
Case #Btn_Jelly_Toggle_Button ; Jelly Toggle Button
Debug "Jelly toggled"
Case #Btn_Regular_Toggle_Button ; Regular Toggle Button
Debug "Regular toggled"
EndSelect
EndSelect
ForEver
CompilerEndIf