0 Members and 3 Guests are viewing this topic.
function form:init(*other specs here*,depth) *other specs here* self.depth=depthendtable.insert(windows,form(*other specs here*,1)for i=1,#windows do table.insert(depthtable,i,[tostring(i)]=windows[1].depth)endfunction on.paint(gc) table.sort(depthtable) for v,k in pairs(depthtable) do v:paint(gc,windows(k)) endendfunction form:paint(gc,window) *draw form here with self.***end
local ltblhold = {} table.insert(ltblhold, self) for i = 1, #wndTbl do if wndTbl[i] == self then b = i break end end table.remove(wndTbl, b) table.insert(wndTbl, ltblhold[1])
"welcome to the world of computers, where everything seems to be based on random number generators"