< Slider | CodeSamples | Container >
---% Code tested with Luxinia 0.95 build Nov 15 2006 ---% at 11/16/06 22:47:22 -- create frame at 10,10 frame = TitleFrame:new(10,10,100,100,nil,"Frametitle") -- add a button to it btn = frame:add(Button:new(10,30,80,20,"Close")) -- assign function to body to close the frame function btn:onClicked() frame:remove() end -- add the frame to the rootcontainer Container.getRootContainer():add(frame)
