< Label | CodeSamples | TextField >

---% Code tested with Luxinia 0.95 build Nov 15 2006
---% at 11/17/06 12:49:59

  -- create a Button at 10,10 width width=100 and height=20
btn = Button:new(10,10,100,20,"Hello World")
  -- add Button to rootcontainer to make it visible
Container.getRootContainer():add(btn) 

  -- overload the onClicked function from the button
  -- which is called every time when the button is clicked
function btn:onClicked()
  print("Hello World")
end