daspamer Grandmaster Cheater Supreme
Reputation: 54 Joined: 13 Sep 2011 Posts: 1588
|
Posted: 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.
|
|