Hello Guest it is March 29, 2024, 01:55:47 AM

Author Topic: wxLua scripting references and manuals (links)  (Read 3155 times)

0 Members and 1 Guest are viewing this topic.

wxLua scripting references and manuals (links)
« on: May 08, 2014, 01:14:34 AM »
Please be aware that you have to deal with three different things, when programming wizards or shiny UI stuff. Main documentation overview can be viewed here: http://wxlua.sourceforge.net/documentation.php

1. Lua
Replacing Basic, this is the new scripting language used in UI callbacks, scripts and wizards. API documentation: http://www.lua.org/manual/5.2/

2. wxLua
This UI library was originally built on C++. It makes you able to build windows, frames, input fields, buttons and has been ported to Lua (not all of it, but most). You can either refer to wxWidget original API documentation (starting at http://docs.wxwidgets.org/2.8/) or to the sparse wxLua doc (http://wxlua.sourceforge.net/docs/wxluaref.html, please scroll down for partial API).

3. Mach4 API
No functionality without a CNC... You can connect to Mach4 core by using its API in your scripts. The API commands are listed in Mach4 documentation file Docs/LuaCalls.txt. For further info, please read this thread: http://www.machsupport.com/forum/index.php/topic,27141.0.html


Where to start?
Mach4 comes with some example wizards in Wizards subdirectory. Click Wizard -> Select Wizard to start them. The (so-far-default) UI also contains some scripting examples (see Operator -> Lua script for an overview).