Whats your idea on that?
Code: Select all
If OpenWindow(0, 0, 0, 340, 419, "Drawing", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_ScreenCentered)
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_Repaint
StartDrawing(WindowOutput(0))
Line(20, 287, 300, 1, RGB(0, 0, 0))
StopDrawing()
EndIf
Until Event = #PB_Event_CloseWindow
EndIf

