Programmvariante 1:
Code: Alles auswählen
x=200
y=200
IB=400
IH=400
OpenWindow(1, x, y, IB, IH, "Wieso???")
StartDrawing(WindowOutput(1))
Line(0,20,399,0,RGB(230,5,2))
StopDrawing()
ButtonGadget(1,50,200,100,30,"Ahaso")
Repeat
Repeat
Event = WindowEvent()
If Event = #PB_Event_CloseWindow : Quit = 1 : EndIf
Until Event = 0
Until Quit = 1
Code: Alles auswählen
x=200
y=200
IB=400
IH=400
OpenWindow(1, x, y, IB, IH, "Wieso???")
ButtonGadget(1,50,200,100,30,"Ahaso")
StartDrawing(WindowOutput(1))
Line(0,20,399,0,RGB(230,5,2))
StopDrawing()
Repeat
Repeat
Event = WindowEvent()
If Event = #PB_Event_CloseWindow : Quit = 1 : EndIf
Until Event = 0
Until Quit = 1


