wie kann ich eine Linie Hintern eine Box darstellen ohne die Reihenfolge der Darstellung zu ändern (zu erste AddPathBox dann AddPathLine)
Gruß
MarcelX
EDIT: Kommentar eingefügt
Code: Alles auswählen
If OpenWindow(0, 0, 0, 400, 200, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CanvasGadget(0, 0, 0, 400, 200)
If StartVectorDrawing(CanvasVectorOutput(0))
; Alle Box abfragen und darstellen
MovePathCursor(40, 20)
AddPathBox(50, 50, 200, 50)
FillPath(#PB_Path_Preserve)
; Alle Linie abfragen und darstellen
MovePathCursor(40, 20)
AddPathLine(150, 100, #PB_Path_Relative)
VectorSourceColor(RGBA(0, 255, 0, 255))
StrokePath(2)
StopVectorDrawing()
EndIf
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf