So ...
For my CAD/CAM program,
I'm drawing a grid on the screen,
and 4 boxes with the same start point ( see code)
The result is, that the 4 boxes start on a different start point !!!!!
depending on what for direction they are drawn.
?? Is this normal ??
Marc
Code: Select all
If OpenWindow(1, 10, 10, 800, 600, "BOX TEST ...", #PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_MaximizeGadget|#PB_Window_SizeGadget)
StartDrawing(WindowOutput(1))
DrawingMode(#PB_2DDrawing_Outlined)
LineXY(200, 180, 200, 420, RGB(200, 0, 0))
LineXY(400, 180, 400, 420, RGB(200, 0, 0))
LineXY(600, 180, 600, 420, RGB(200, 0, 0))
LineXY(180, 200, 620, 200, RGB(200, 0, 0))
LineXY(180, 300, 620, 300, RGB(200, 0, 0))
LineXY(180, 400, 620, 400, RGB(200, 0, 0))
Box(400, 300, 200, 100, RGB(100, 100, 100))
Box(400, 300, -200, 100, RGB(100, 100, 100))
Box(400, 300, -200, -100, RGB(100, 100, 100))
Box(400, 300, 200, -100, RGB(100, 100, 100))
Circle(400, 300, 20, RGB(200, 0, 0))
StopDrawing()
EndIf
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
Quit = 1
EndSelect
Until Event = #PB_Event_CloseWindow
End