Manual

From Wiki pLua

Jump to: navigation, search

pLua Manual Section

This page is a rewrited version of pLua manual (there in downloaded package of pLua). Contain a general conception of command or object and examples of use.

Gui related controls

These functions can draw user interface in pLua programms.

- gui.title([text]) - Set the text as title of currently screen. Each function cal, the current title is replaced by new.

- gui.label(text) - Set text in the screen at current X,Y position.

- gui.button(text [,bmpId [, filename]]) -

- gui.pbutton(text [,g [, bmpId [, filename]]])

- gui.rbutton(text [,bmpId [, filename]])

- gui.checkbox(text)

- gui.selector(text [,bmpId [, filename]])

- gui.slider(width, range [,value])

- gui.field(lines, cols, max [,text [, e, u]])

- gui.fieldattr(id, e, u)

- gui.list(lines, cols, t [,sel])

- gui.popup(t [,sel])

- gui.gettext(id)

- gui.settext(id, text)

- gui.inserttext(id, text)

- gui.setlist(id, list)

- gui.getstate(id)

- gui.setstate(id, n)

- gui.setstate(id, start [,end])

- gui.nl() - Set a next Y position to cursor in screen.

- gui.tab([n])

- gui.destroy() - Clear from screen and clear from memnory all interface.

- gui.alert(text, [f])

- gui.confirm(text)

- gui.input([text [,initial]])

- gui.selectdate([text [, y, m, d]])

- gui.selecttime([text [, h, m]])

- gui.selectcolor(text, c)

- gui.gsi()

- gui.dialog(x, y, dx, dy, title)

- gui.event([n])

- gui.main([n])

- gui.sethandler(id, f)

- gui.control(table) - control can be any other gui component, this is alternative sintax from all others.

Personal tools