(AGK version: 108.15)
Submitted: 2013-07-09 15:42:36
Setvirtualresolution(640,480)
ResetTimer()
//Create a Green Cross Image
swap()
Drawline(0,0,15,15,0,255,0)
Update(0)
Render()
Drawline(0,15,15,0,0,255,0)
Update(0)
Render()
GetImage(1,0,0,15,15)
SetClearColor(50,50,100)
//Create Sprte
id=CreateSprite(1)
AddVirtualButton(1,580,420,80)
SetVirtualButtonText(1,"Delete")
Do
    If GetVirtualButtonPressed(1)
        DeleteSprite(id)
    EndIf
    If Timer()>15 Then Exit
    Sync()
Loop
End
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.