Update of /cvsroot/wxlua/wxLua/samples
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv24033/samples
Modified Files:
editor.wx.lua
Log Message:
Applied most of patch 1622013
except combining start debug and continue, default font changes for MSW
Index: editor.wx.lua
===================================================================
RCS file: /cvsroot/wxlua/wxLua/samples/editor.wx.lua,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** editor.wx.lua 3 Jan 2007 23:14:41 -0000 1.42
--- editor.wx.lua 8 Jan 2007 04:41:33 -0000 1.43
***************
*** 11,15 ****
function iff(cond, a, b) if cond then return a else return b end end
! -- Does the num has all the bits in value
function HasBit(value, num)
for n = 32, 0, -1 do
--- 11,15 ----
function iff(cond, a, b) if cond then return a else return b end end
! -- Does the num have all the bits in value
function HasBit(value, num)
[...1069 lines suppressed...]
--- 2151,2169 ----
end)
+ frame:Connect(ID_SHOWHIDEWINDOW, wx.wxEVT_COMMAND_MENU_SELECTED,
+ function (event)
+ if splitter:IsSplit() then
+ splitter:Unsplit()
+ else
+ local x, y = frame:GetClientSize()
+ splitter:SplitHorizontally(notebook, errorLog, (2 * y) / 3)
+ end
+ end)
+
+ frame:Connect(ID_USECONSOLE, wx.wxEVT_COMMAND_MENU_SELECTED,
+ function (event)
+ menuBar:Check(ID_USECONSOLE, menuBar:IsChecked(ID_USECONSOLE))
+ end)
+
-- ---------------------------------------------------------------------------
-- Create the Help menu and attach the callback functions
|