You can draw lines, but I think maybe there is a built -in solution?
Code: Select all
#canvas=1
If Not OpenWindow(0, 0, 0, 1900, 900, "Gadget BOX", #PB_Window_SystemMenu)
End
EndIf
CanvasGadget(#canvas, 0, 0, 1000, 900)
If StartDrawing(CanvasOutput(#canvas))
Box(0,0,100,200,#Black)
StopDrawing()
EndIf
Repeat
Gadget = EventGadget()
Until WaitWindowEvent() = #PB_Event_CloseWindow