Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cheat Engine Forum Index
PostGo back to topic
daspamer
Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011
Posts: 1588

PostPosted: Tue May 12, 2015 7:36 pm    Post subject:

Code:
function wipe_window()
    --for _, control in pairs(win.Control) do --the Control array is always empty, unexpectedly
    --    control:destroy()
    --end
    while win.ControlCount > 0 do
        local control= win:getControl(0)
        control:destroy()
    end
end


win= createForm()
control_setSize(win, 200, 200)
w= createButton(win)
control_setCaption(w, "wipe")
control_setPosition(w, 5, 5)
w.onMouseUp= wipe_window -- this..

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
Post reviews:   Approve 1
Author Review
panraven
Review: Approve
Post reference:
ReviewPosted: Tue May 12, 2015 8:01 pm

this.. simple and clever! Smile
Back to top
View user's profile Send private message
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites