Re: Polyline von der GDi32 funktioniert nicht so...
Verfasst: 22.07.2014 12:52
Hallo, guten Tag.
Warum geht dieses *DC nicht in der Procedure?
Wenn ich es in der Event oben reinpacke, funktioniert es.
Danke.
Gruss
Warum geht dieses *DC nicht in der Procedure?
Wenn ich es in der Event oben reinpacke, funktioniert es.
Danke.
Gruss
Code: Alles auswählen
Global *DC
Global Dim poly(5)
Declare asm_polyline()
poly(0)=10
poly(1)=10
poly(2)=100
poly(3)=150
poly(4)=190
poly(5)=150
OpenWindow(0, 0, 0, 220, 220, "PolyLine", #PB_Window_SystemMenu)
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_Gadget And EventGadget() = 0
If EventType() = #PB_EventType_LeftButtonDown
asm_polyline()
EndIf
EndIf
Until Event = #PB_Event_CloseWindow
Procedure asm_polyline()
*DC = GetDC_(WindowID(0))
Polyline_(*DC,poly(),3)
EndProcedure