From: Francesco M. <fr...@us...> - 2006-12-19 23:45:27
|
Update of /cvsroot/wxlua/website In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv27939 Modified Files: luasample.lua luasample.lua.html Log Message: since I couldn't really manage to get the lua sample text to stay BEHIND the news box, I've modified the sample so that the overlapping string shouldn't overlap anymore Index: luasample.lua =================================================================== RCS file: /cvsroot/wxlua/website/luasample.lua,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** luasample.lua 25 May 2006 04:00:48 -0000 1.2 --- luasample.lua 19 Dec 2006 23:45:20 -0000 1.3 *************** *** 8,12 **** -- create a simple help menu local helpMenu = wx.wxMenu() ! helpMenu:Append(wx.wxID_ABOUT, "&About", "About the wxLua Minimal Application") -- create a menu bar and append the file and help menus local menuBar = wx.wxMenuBar() --- 8,13 ---- -- create a simple help menu local helpMenu = wx.wxMenu() ! helpMenu:Append(wx.wxID_ABOUT, "&About", ! "About the wxLua Minimal Application") -- create a menu bar and append the file and help menus local menuBar = wx.wxMenuBar() Index: luasample.lua.html =================================================================== RCS file: /cvsroot/wxlua/website/luasample.lua.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** luasample.lua.html 25 May 2006 04:00:48 -0000 1.2 --- luasample.lua.html 19 Dec 2006 23:45:20 -0000 1.3 *************** *** 1,18 **** - <!-- Generator: GNU source-highlight 2.3 - by Lorenzo Bettini - http://www.lorenzobettini.it - http://www.gnu.org/software/src-highlite --> <pre><tt>frame <span style="color: #990000">=</span> wx<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">wxFrame</span></span><span style="color: #990000">(</span>wx<span style="color: #990000">.</span>wxNull<span style="color: #990000">,</span> wx<span style="color: #990000">.</span>wxID_ANY<span style="color: #990000">,</span> <span style="color: #FF0000">"wxLua Minimal Demo"</span><span style="color: #990000">,</span> ! wx<span style="color: #990000">.</span>wxDefaultPosition<span style="color: #990000">,</span> wx<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">wxSize</span></span><span style="color: #990000">(</span><span style="color: #993399">450</span><span style="color: #990000">,</span> <span style="color: #993399">450</span><span style="color: #990000">),</span> wx<span style="color: #990000">.</span>wxDEFAULT_FRAME_STYLE<span style="color: #990000">)</span> <span style="font-style: italic"><span style="color: #9A1900">-- create a simple file menu</span></span> ! <span style="font-weight: bold"><span style="color: #0000FF">local</span></span> fileMenu <span style="color: #990000">=</span> wx<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">wxMenu</span></span><span style="color: #990000">()</span> <span style="font-weight: bold"><span style="color: #000000">fileMenu:Append</span></span><span style="color: #990000">(</span>wx<span style="color: #990000">.</span>wxID_EXIT<span style="color: #990000">,</span> <span style="color: #FF0000">"E&xit"</span><span style="color: #990000">,</span> <span style="color: #FF0000">"Quit the program"</span><span style="color: #990000">)</span> <span style="font-style: italic"><span style="color: #9A1900">-- create a simple help menu</span></span> ! <span style="font-weight: bold"><span style="color: #0000FF">local</span></span> helpMenu <span style="color: #990000">=</span> wx<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">wxMenu</span></span><span style="color: #990000">()</span> ! <span style="font-weight: bold"><span style="color: #000000">helpMenu:Append</span></span><span style="color: #990000">(</span>wx<span style="color: #990000">.</span>wxID_ABOUT<span style="color: #990000">,</span> <span style="color: #FF0000">"&About"</span><span style="color: #990000">,</span> <span style="color: #FF0000">"About the wxLua Minimal Application"</span><span style="color: #990000">)</span> <span style="font-style: italic"><span style="color: #9A1900">-- create a menu bar and append the file and help menus</span></span> ! <span style="font-weight: bold"><span style="color: #0000FF">local</span></span> menuBar <span style="color: #990000">=</span> wx<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">wxMenuBar</span></span><span style="color: #990000">()</span> <span style="font-weight: bold"><span style="color: #000000">menuBar:Append</span></span><span style="color: #990000">(</span>fileMenu<span style="color: #990000">,</span> <span style="color: #FF0000">"&File"</span><span style="color: #990000">)</span> <span style="font-weight: bold"><span style="color: #000000">menuBar:Append</span></span><span style="color: #990000">(</span>helpMenu<span style="color: #990000">,</span> <span style="color: #FF0000">"&Help"</span><span style="color: #990000">)</span> --- 1,15 ---- <pre><tt>frame <span style="color: #990000">=</span> wx<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">wxFrame</span></span><span style="color: #990000">(</span>wx<span style="color: #990000">.</span>wxNull<span style="color: #990000">,</span> wx<span style="color: #990000">.</span>wxID_ANY<span style="color: #990000">,</span> <span style="color: #FF0000">"wxLua Minimal Demo"</span><span style="color: #990000">,</span> ! wx<span style="color: #990000">.</span>wxDefaultPosition<span style="color: #990000">,</span> wx<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">wxSize</span></span><span style="color: #990000">(</span><span style="color: #993399">450</span><span style="color: #990000">,</span> <span style="color: #993399">450</span><span style="color: #990000">)</span><span style="color: #990000">,</span> wx<span style="color: #990000">.</span>wxDEFAULT_FRAME_STYLE<span style="color: #990000">)</span> <span style="font-style: italic"><span style="color: #9A1900">-- create a simple file menu</span></span> ! <span style="font-weight: bold"><span style="color: #0000FF">local</span></span> fileMenu <span style="color: #990000">=</span> wx<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">wxMenu</span></span><span style="color: #990000">(</span><span style="color: #990000">)</span> <span style="font-weight: bold"><span style="color: #000000">fileMenu:Append</span></span><span style="color: #990000">(</span>wx<span style="color: #990000">.</span>wxID_EXIT<span style="color: #990000">,</span> <span style="color: #FF0000">"E&xit"</span><span style="color: #990000">,</span> <span style="color: #FF0000">"Quit the program"</span><span style="color: #990000">)</span> <span style="font-style: italic"><span style="color: #9A1900">-- create a simple help menu</span></span> ! <span style="font-weight: bold"><span style="color: #0000FF">local</span></span> helpMenu <span style="color: #990000">=</span> wx<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">wxMenu</span></span><span style="color: #990000">(</span><span style="color: #990000">)</span> ! <span style="font-weight: bold"><span style="color: #000000">helpMenu:Append</span></span><span style="color: #990000">(</span>wx<span style="color: #990000">.</span>wxID_ABOUT<span style="color: #990000">,</span> <span style="color: #FF0000">"&About"</span><span style="color: #990000">,</span> ! <span style="color: #FF0000">"About the wxLua Minimal Application"</span><span style="color: #990000">)</span> <span style="font-style: italic"><span style="color: #9A1900">-- create a menu bar and append the file and help menus</span></span> ! <span style="font-weight: bold"><span style="color: #0000FF">local</span></span> menuBar <span style="color: #990000">=</span> wx<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">wxMenuBar</span></span><span style="color: #990000">(</span><span style="color: #990000">)</span> <span style="font-weight: bold"><span style="color: #000000">menuBar:Append</span></span><span style="color: #990000">(</span>fileMenu<span style="color: #990000">,</span> <span style="color: #FF0000">"&File"</span><span style="color: #990000">)</span> <span style="font-weight: bold"><span style="color: #000000">menuBar:Append</span></span><span style="color: #990000">(</span>helpMenu<span style="color: #990000">,</span> <span style="color: #FF0000">"&Help"</span><span style="color: #990000">)</span> |