Drawing on black background
Posted: Tue Oct 12, 2010 2:43 am
Drawing on an opened window with the default background color works but changing the window background color to black prevents things like Box() from showing. Is this a Windows thing? I'm using XP Pro SP3, PB 4.51
Thank you.
Code: Select all
If OpenWindow(0,0,0,400,300,"Test")
SetWindowColor(0,RGB(0,0,0))
StartDrawing(WindowOutput(0))
DrawingMode(#PB_2DDrawing_Outlined)
Box(20,20,350,250,RGB(255,255,255))
StopDrawing()
While WaitWindowEvent() <> #PB_Event_CloseWindow
Wend
EndIf