Why is the background of the checkbox, option, panel and ... transparent when added to the canvas container?
Is there an easy way to prevent this? like window.
Code: Select all
If OpenWindow(0, 0, 0, 600, 600, "CanvasGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
SetWindowColor(0,RGB(80,255,255))
;CheckBoxGadget(1,30,30,100,30,"chk")
OptionGadget(1,30,30,100,30,"Opt")
CanvasGadget(0, 200, 200, 200, 200,#PB_Canvas_Container|#PB_Canvas_Border)
If StartDrawing(CanvasOutput(0))
Box(0,0,200,200,RGB(80,255,255))
StopDrawing()
EndIf
;CheckBoxGadget(2,30,30,100,30,"chk")
OptionGadget(2,30,30,100,30,"Opt")
CloseGadgetList()
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf