Any help is appreciated.
Code: Select all
If OpenWindow(0, 0, 0, 800, 600, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
StartDrawing(WindowOutput(0))
Box(0,0,800,600,RGB(0,0,0))
StopDrawing()
EndIf
Repeat
Event= WaitWindowEvent()
Select event
Case #WM_LBUTTONUP
Debug "Left Button Up"
Case #WM_RBUTTONUP
Debug "Right Button Up"
EndSelect
Until Event = #PB_Event_CloseWindow
End