--lua code explorer info:
-- code explorer categories:
-- functions
-- tables
-- requires
-- this code defines three lua functions: wxT, _ and NewID
-- if an anonymous function is created but not bound to a name, it probably
shouldn't show up
local wxT = function(s) return s end -- anonymous function bound to the name
wxT
local _ = function(s) return s end -- anonymous function bound to the name
_
local function NewID()
if not IDCounter then IDCounter = wx.wxID_HIGHEST end
IDCounter = IDCounter + 1
return IDCounter
end
-- this code defines two tables: MyApp and MyFrame
-- if a table is passed as a parameter to a function it probably shouldn't show
up as its unnamed.
local MyApp = {}
local MyFrame = {
ID_CreateTree = NewID(),
ID_CreateGrid = NewID(),
ID_CreateText = NewID(),
ID_CreateHTML = NewID(),
ID_CreateNotebook = NewID()
}
-- this shows requires:
require "lfs" -- loads lfs module
require("wx") -- loads wx module; notice that the parenthesis are
optional
--
<http://forum.pspad.com/read.php?2,51615,51631>
PSPad freeware editor http://www.pspad.com