Calendar Gadget & #PB_Gadget_RequiredSize Error

Found an issue in SpiderBasic ? Please report it here !
useful
Posts: 49
Joined: Tue Feb 25, 2014 1:15 pm

Calendar Gadget & #PB_Gadget_RequiredSize Error

Post by useful »

Code: Select all

OpenWindow(0, 0, 0, 0, 0, "TestCG", #PB_Window_Background)
CalendarGadget(0, 0, 0, 0, 0,Date())   ;#PB_Calendar_Borderless
CalendarGadget(1, 0, 0, 0, 0,Date()+1) ;#PB_Calendar_Borderless
CgW0 = GadgetWidth(0,#PB_Gadget_RequiredSize)  :Debug CgW0
CgH0 = GadgetHeight(0,#PB_Gadget_RequiredSize) :Debug CgH0
ResizeGadget(0, 20,20,CgW0,CgH0)  
CgW1 = GadgetWidth(1,#PB_Gadget_RequiredSize)  :Debug CgW1
CgH1 = GadgetHeight(1,#PB_Gadget_RequiredSize) :Debug CgH1
CgW1 = CgW1 + 30 ;????????
CgH1 = CgH1 + 30 ;????????
ResizeGadget(1, 20+20+CgW0,20,CgW1,CgH1) 
2B or not 2B = FF
Dirk Geppert
Posts: 229
Joined: Fri Sep 22, 2017 7:02 am

Re: Calendar Gadget & #PB_Gadget_RequiredSize Error

Post by Dirk Geppert »

Only concerns the claro gadgets theme, it works with flat..
useful
Posts: 49
Joined: Tue Feb 25, 2014 1:15 pm

Re: Calendar Gadget & #PB_Gadget_RequiredSize Error

Post by useful »

Code: Select all

OpenWindow(0, 0, 0, 0, 0, "TestCG", #PB_Window_Background)
CalendarGadget(0, 0, 0, 0, 0,Date())   ;#PB_Calendar_Borderless
CalendarGadget(1, 0, 0, 0, 0,Date()+1) ;#PB_Calendar_Borderless
CgW0 = GadgetWidth(0,#PB_Gadget_RequiredSize)  :Debug CgW0
CgH0 = GadgetHeight(0,#PB_Gadget_RequiredSize) :Debug CgH0
ResizeGadget(0, 20,20,CgW0,CgH0) 
CgW1 = GadgetWidth(1,#PB_Gadget_RequiredSize)  :Debug CgW1
CgH1 = GadgetHeight(1,#PB_Gadget_RequiredSize) :Debug CgH1
CgW1 = CgW1 + 7 ; for Claro
;CgH1 = CgH1 +  ;????????
ResizeGadget(1, 20+20+CgW0,20,CgW1,CgH1)
2B or not 2B = FF
Post Reply