Re: [wxlua-users] Wxthread not wrapped by wxLua, and what's the replacement?

2010-05-05 Thread John Labenski
On Tue, May 4, 2010 at 9:43 AM, Chunlin Zhang zhangchun...@gmail.com wrote: If I want to do some mutithread programming,how can I do using wxlua in pure lua? You can use Lua's coroutines, see the sample coroutine.wx.lua or more generally Google for sample code using Lua coroutines. wxThread

Re: [wxlua-users] Wxthread not wrapped by wxLua, and what's the replacement?

2010-05-05 Thread John Labenski
This is the link to the download page for gpeddler2. http://www.erix.it/progutil.html#gpeddler2 Regards, John On Wed, May 5, 2010 at 1:39 PM, John Labenski jlaben...@gmail.com wrote: On Tue, May 4, 2010 at 9:43 AM, Chunlin Zhang zhangchun...@gmail.com wrote: If I want to do some mutithread

Re: [wxlua-users] Converter from wxFormBuilder cpp to lua

2010-05-06 Thread John Labenski
On Wed, May 5, 2010 at 5:08 PM, Domingo Alvarez Duarte mingo...@gmail.com wrote: Here is a lua script that convert the cpp file generated from wxFormBuilder to lua. Very interesting, I'll try it out when I get a chance. Thanks for sharing. John

Re: [wxlua-users] How to get a C++ class from a wxLua object?

2010-05-19 Thread John Labenski
2010/5/19 Mateusz Czaplinski czapko...@gmail.com: Hi, In a C++ function called from Lua, how can I retrieve the regular wxWidgets class wrapped by wxLua? Let's say I have a function:  int foo(lua_State* L); and it is called from Lua, with a (wxLua) wxStaticText object on top The best place

Re: [wxlua-users] Drag and Drop suport

2010-05-19 Thread John Labenski
On Tue, May 18, 2010 at 10:04 AM, marcos marcos...@yahoo.com.br wrote: Hello list, A need to transfer data between two wxListBox using dragging. wxLua have problem with DnD suport. How can I do this? Can you use wxWindow::SetDropTarget() as per this overview?

Re: [wxlua-users] In coroutine, can not get right value of a Extending classes member!

2010-06-13 Thread John Labenski
On Sun, Jun 13, 2010 at 2:26 AM, Chunlin Zhang zhangchun...@gmail.com wrote: Dear all:  I have just encountered this kind of issue,using wxlua in Lua for windows (LuaForWindows_v5.1.4-36).I extend class using the method mentioned in Extending classes of

Re: [wxlua-users] Why wxGrid does not have GetSelectedCells()?

2010-06-17 Thread John Labenski
On Thu, Jun 17, 2010 at 5:40 AM, Chunlin Zhang zhangchun...@gmail.com wrote: Ok,I know that it may be the version problem of Lua for windows.It still using the version wxlua 2.8.7.0(wxwidget2.8.8). I would ask LFW to update it. Right, the 2.8.10 version has those. Regards, John

Re: [wxlua-users] Error after compiling from source: cannot find libwxlua_gtk2u_wxbindxrc-2.8.so.0

2010-06-17 Thread John Labenski
On Thu, Jun 17, 2010 at 3:58 PM, Linus Sjögren thel...@unreliablepollution.net wrote: Hi! I downloaded the wxLua source code from the website, configure'd, make'd and sudo make installed. However, when I try to run wxlua, or require(wx), I'm granted with this error: error while loading

Re: [wxlua-users] wxLua URL input stream Read() is not working.

2010-08-10 Thread John Labenski
then break; end end return table.concat(T), T end Regards, John Labenski -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu

Re: [wxlua-users] Wxthread not wrapped by wxLua, and what's the replacement?

2010-08-19 Thread John Labenski
will be responsive. This is a standard way in wxWidgets to process something without using threads and have a cancel button usable. Regards, John Labenski -- This SF.net email is sponsored by Make an app they can't live without

Re: [wxlua-users] wxWidgets 2.9 support

2010-08-24 Thread John Labenski
the current wxLua to work with 2.9 in the interim however. Regards, John Labenski -- Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions

Re: [wxlua-users] Modification to editor.lua

2010-08-24 Thread John Labenski
On Sun, Aug 22, 2010 at 11:26 AM, AndreArpin ar...@kingston.net wrote: change the function SaveFileAs(editor) to read ... This will stop the editor to silently override existing file. Thanks, I've applied it in CVS. Regards, John Labenski

Re: [wxlua-users] GUI Application To Read/Edit and Write To a Configuration.lua file

2010-08-24 Thread John Labenski
://wxlua.cvs.sourceforge.net/viewvc/wxlua/wxLua/modules/wxbind/src/wxcore_controls.cpp?view=markup I hope this gives you some ideas, John Labenski -- Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part

Re: [wxlua-users] What is the use of attach?

2010-08-25 Thread John Labenski
then --ok = debuggerServer:StartServer() --end debuggerServer = CreateDebuggerServer() if debuggerServer then ... Regards, John Labenski -- Sell apps to millions through the Intel(R) Atom(Tm) Developer Program

Re: [wxlua-users] Modification to editor.lua

2010-08-27 Thread John Labenski
On Fri, Aug 27, 2010 at 8:40 AM, AndreArpin ar...@kingston.net wrote: Adding the DestroyDebuggerServer prevent exception on termination. frame:Connect( ID_EXIT, wx.wxEVT_COMMAND_MENU_SELECTED,        function (event)            if not SaveOnExit(true) then return end            

Re: [wxlua-users] Modification to wxldtarg.cpp

2010-08-27 Thread John Labenski
On Fri, Aug 27, 2010 at 2:11 PM, AndreArpin ar...@kingston.net wrote: bool wxLuaDebugTarget::AddBreakPoint(const wxString fileName, int lineNumber) {    wxString breakPoint = CreateBreakPoint(fileName, lineNumber);    wxCriticalSectionLocker locker(m_breakPointListCriticalSection);    if

Re: [wxlua-users] How can I do this using wxlua?

2010-09-09 Thread John Labenski
On Wed, Sep 8, 2010 at 12:02 AM, Chunlin Zhang zhangchun...@gmail.com wrote: John Labenski jlaben...@... writes: On Tue, Sep 7, 2010 at 1:48 AM, Chunlin Zhang zhangchun...@... wrote: You can also simulate this using a wxListBox shown below the wxTextCtrl/wxComboBox, but as with your menu you

Re: [wxlua-users] database widget creation

2010-10-14 Thread John Labenski
On Thu, Oct 14, 2010 at 11:00 AM, Jean-Yves F. Barbier 12u...@gmail.com wrote: Hi list, So I'm looking after advices (or code if it has already be done); my needs are: * Re-sort the tabular view by clicking on a column (and display which one  is the base of the sort in which direction: ASC

Re: [wxlua-users] example weird PB

2010-10-15 Thread John Labenski
On Thu, Oct 14, 2010 at 11:13 PM, Jean-Yves F. Barbier 12u...@gmail.com wrote: Hi list, There's something I don't understand in the example controls.wx.lua, the insertion of the wx.wxBitmapComboBox crashes the program with this output: $ lua JY_controls.wx.lua lua: JY_controls.wx.lua:435:

Re: [wxlua-users] example weird PB

2010-10-15 Thread John Labenski
On Fri, Oct 15, 2010 at 10:33 AM, Jean-Yves F. Barbier 12u...@gmail.com wrote: ... I have no problem with this sample in MSW and Mandriva Linux. What wxLua are you using, did you compile it yourself? I use tarball wxLua-2.8.10.0-src.tar.gz from sourceforge.net You could try the CVS version,

Re: [wxlua-users] A wxTextCtrl:GetInsertionPoint() problem with wxstring/lua string

2010-10-15 Thread John Labenski
On Sun, Sep 12, 2010 at 5:30 AM, Chunlin Zhang zhangchun...@gmail.com wrote: Now I want to use wxTextCtrl:GetInsertionPoint() to get input point,but I found that GetInsertionPoint is using character to count,not byte.So the result of GetInsertionPoint() is not suitable to use in wxTextCtrl

Re: [wxlua-users] compiling wx.dll

2010-10-15 Thread John Labenski
On Fri, Oct 15, 2010 at 4:41 PM, AndreArpin ar...@kingston.net wrote: Hi, Compiling wx.dll is much easier then it used to be but a couple of minor changes would help. using: msvc8\modules.sln [Debug Unicode DLL MultiLib] mod_luamodule_mono only enable   mod_lua   mod_luamodule_mono

Re: [wxlua-users] ListCtrl PB

2010-11-07 Thread John Labenski
On Fri, Nov 5, 2010 at 8:18 PM, Jean-Yves F. Barbier 12u...@gmail.com wrote: Hi list, I just discovered that SetItemCount doesn't exist into a LC, what should I use, knowing I'm building a LC with a virtual list? Unfortunately wxLua doesn't currently support virtual list controls right now.

Re: [wxlua-users] wxLua Lua module segfaults when running on Ubuntu 10.04 and 10.10

2010-11-22 Thread John Labenski
On Wed, Nov 3, 2010 at 1:02 PM, Ryan Pusztai rpusz...@gmail.com wrote: Hi, I have downloaded the latest release of wxLua and built it using the documented method from the wxLua website (./configure, make, sudo make install). After I 'sudo make install' and I try to just simply 'require( wx

Re: [wxlua-users] wxLua Lua module segfaults when running on Ubuntu 10.04 and 10.10

2010-11-23 Thread John Labenski
Well I don't have more than one version of Lua or wxWidgets installed. I installed them directly form the apt repository in Ubuntu. I checked ldd and did not find any .so that linked to anything outside the systems version of Lua.  Could it be a difference because wxLua is bound to 2.8.10 and

Re: [wxlua-users] [ wxlua-Bugs-3115780 ] minor fix to editor.lua

2010-11-24 Thread John Labenski
On Wed, Nov 24, 2010 at 1:57 PM, Andre Arpin ar...@kingston.net wrote: SourceForge.net nore...@... writes: The following code added to the CompileFunction solves the problem     local firstLine = editor:GetTextRange(0, editor:PositionFromLine(1))     if string.sub(firstLine, 1,1) == '#' then

Re: [wxlua-users] Modification to luamodule.cpp

2010-12-01 Thread John Labenski
On Wed, Dec 1, 2010 at 9:34 AM, Andre Arpin ar...@kingston.net wrote: Andre Arpin ar...@... writes: Sorry to tell you that       ::LoadLibrary(_T(comctl32.dll)); has to be used. I think that I managed to lock the comctl32.dll permanently when I tested wxDynamicLibrary. I should have

Re: [wxlua-users] settings.wx.lua assert in 64 bits mode

2010-12-02 Thread John Labenski
On Wed, Dec 1, 2010 at 9:31 AM, Andre Arpin ar...@kingston.net wrote: E:\Programs\wxWidgets\wxLua\samples\settings.wx.lua AddListItem({wx.wxGetFreeMemory():ToLong(), wx.wxGetFreeMemory():ToLong()}) wx.wxGetFreeMemory() = 4294967295 which is 2^32 -1 this cannot be converted to long. Whould

Re: [wxlua-users] Installing wxLua

2011-02-23 Thread John Labenski
anywhere else. Hope this helps, John Labenski -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated

Re: [wxlua-users] frame:ShowFullScreen(true) does work for me

2011-04-03 Thread John Labenski
On Sun, Apr 3, 2011 at 5:11 AM, Jens Mueller jens.k.muel...@gmx.de wrote: Thanks for your answer. Show() works but I need full screen. It seems that ShowFullScreen() is not supposed to work on Linux (wxcore_appframe.i has %win in front of ShowFullScreen). But I found some posts where it was

Re: [wxlua-users] tree.wx.lua

2011-10-16 Thread John Labenski
On Sat, Oct 15, 2011 at 10:56 AM, Andre Arpin ar...@kingston.net wrote: Got a problem with wxltreeitemdata:SetData(hello, I'm string data) since wxLuaTreeItemData is derived from wxClientData and not wxStringClientData SetData is not available. Something seems to be out of sync... The

Re: [wxlua-users] wxLua D

2011-12-11 Thread John Labenski
On Sun, Dec 11, 2011 at 5:49 AM, Gour g...@atmarama.net wrote: I'm new to both Lua and wxLua thanks to premake project which we're considering to use as a build system for our new multi-platform GUI project in D. I have not used premake, but we use Bakefile (which is difficult for me to

Re: [wxlua-users] wxLua D

2011-12-12 Thread John Labenski
On Mon, Dec 12, 2011 at 4:38 AM, Gour g...@atmarama.net wrote: On Sun, 11 Dec 2011 13:50:47 -0500 John Labenski jlaben...@gmail.com wrote: I have not used premake, but we use Bakefile (which is difficult for me to understand) Why don't you try premake? It's *very* clean and easy

Re: [wxlua-users] Cmake how?

2011-12-17 Thread John Labenski
On Sat, Dec 17, 2011 at 10:06 AM, klaas.holwerda n...@klaasholwerda.nl wrote: I thought to give it a try, but i don't succeed. First tried cmake-gui without anything extra. Fill in the source dir, and some other builddir outside wxLua. It configures and generates a project, but there is

Re: [wxlua-users] Cmake how?

2011-12-18 Thread John Labenski
On Sun, Dec 18, 2011 at 10:59 AM, klaas.holwerda n...@klaasholwerda.nl wrote: Hi, Yep, i now can work with it. But 2.9.2 gives a lot of deprecated warning, and in the end compile errors. Yeah, lots of deprecated warnings. I am going to get rid of the 2.8 functions soon and see what's left.

Re: [wxlua-users] Cmake how?

2011-12-19 Thread John Labenski
On Mon, Dec 19, 2011 at 6:22 AM, klaas.holwerda n...@klaasholwerda.nl wrote: This i get with 2.9.2 . 2Compiling... 1wxaui_bind.cpp 2wxaui_bind.cpp 2..\..\..\wxLua\trunk\wxLua\modules\wxbind\src\wxaui_bind.cpp(696) : error C2039: 'curState' : is not a member of 'wxAuiTabContainerButton'

Re: [wxlua-users] Cmake how?

2011-12-20 Thread John Labenski
On Tue, Dec 20, 2011 at 11:31 AM, klaas.holwerda n...@klaasholwerda.nl wrote: Hi John, 2.8.12 no compiles. But in 2.9.2 i get problems with OpenGl. ( i am using default wxWidgets). Maybe the test for that in CMake is not done?? Will try 2.9.3 soon. Ahh, the variable that sets that is

Re: [wxlua-users] Cmake how?

2011-12-21 Thread John Labenski
On Wed, Dec 21, 2011 at 10:13 AM, klaas.holwerda n...@klaasholwerda.nl wrote: I give my out-of-tree build dir the complete build name, compiler, 32/64... to fully describe it. Oke, but that i have to explain to users wanting to use wxart2d with wxlua. Saying if you want to compile different

Re: [wxlua-users] cannot make wxlua on Ubuntu

2011-12-27 Thread John Labenski
: John Labenski jlaben...@gmail.com Subject: Re: [wxlua-users] cannot make wxlua on Ubuntu To: wxlua-users@lists.sourceforge.net Message-ID: caak6ofehbusulcn_agddn3tiqceaspcfe3tax9bl28p84uh...@mail.gmail.com Content-Type: text/plain; charset=windows-1252 As a temporary measure, if you

Re: [wxlua-users] Compiling wx.dll

2011-12-27 Thread John Labenski
Yes, I tried with cmake to build a wx.dll staticly linked to the wxWidgets dlls and it works well, but with a million useless warnings about how you are not exporting wxWidgets functions. What you did sounds great and I didn't know it was so easy, I'll add it to the install docs. John On Dec

Re: [wxlua-users] Event handling function inside a module

2012-02-14 Thread John Labenski
On Tue, Feb 14, 2012 at 10:09 PM, Milind Gupta milind.gu...@gmail.com wrote: Hi,        I wonder if this is a known issue or something intentional. I have made a module that creates a frame with some buttons and associates an event handling function for the button click, the function resides

Re: [wxlua-users] Event handling function inside a module

2012-02-15 Thread John Labenski
On Wed, Feb 15, 2012 at 3:14 AM, Milind Gupta milind.gu...@gmail.com wrote: Hello John, thanks for the reply. Here is an example code that does not work Please try to provide enough code to make it run out of the box... I had to add back GUI.initFrameH and rem out the usage of

Re: [wxlua-users] wxListCtrl adding item not working in Ubuntu

2012-02-21 Thread John Labenski
On Tue, Feb 21, 2012 at 2:26 PM, Milind Gupta milind.gu...@gmail.com wrote: Hi John,           Thanks for the reply. I created a minimal example (attached and pasted). This example works fine in windows but doesn't show anything in Linux. Also another thing I noticed in my original program is

Re: [wxlua-users] Fwd: Compilation error in the SVN -- wxGLCanvas with wxWidgets 2.9.3

2012-03-15 Thread John Labenski
Please do an update and try again. I have adjusted the way the gl lib is handled recently. If that doesn't fix it, does the output of CMake say anything about gl being missing? There is a whole section about what is found, could you post that. Regards, John On Thu, Mar 15, 2012 at 4:04 AM,

Re: [wxlua-users] Fwd: Compilation error in the SVN -- wxGLCanvas with wxWidgets 2.9.3

2012-03-26 Thread John Labenski
On Thu, Mar 22, 2012 at 5:27 AM, Konstantin lalakos...@gmail.com wrote: Hello John! First, i need static build of wxLua on wxWidgets 2.9.3, and that's why i didn't use CMake: The CMake build is brand new and does not work in OSX, though your errors above are for GTK. What exactly are you

Re: [wxlua-users] Fwd: Compilation error in the SVN -- wxGLCanvas with wxWidgets 2.9.3

2012-03-27 Thread John Labenski
On Tue, Mar 27, 2012 at 12:37 AM, John Labenski jlaben...@gmail.com wrote: I just got a OSX machine I can use and will try some things tomorrow. Back to your original, problem with OSX. wxLua now build in 2.8 and 2.9 using the CMake build files. The bundles are not very good, but it builds

Re: [wxlua-users] Deriving from wxDataObjectSimple

2012-04-08 Thread John Labenski
On Sat, Apr 7, 2012 at 7:40 PM, strawman straw...@lavabit.com wrote:  From the wx docs for wxDataObjectSimple: Notice that this is still an abstract base class and cannot be used but should be derived from. The objects supporting rendering the data must override GetDataSize and GetDataHere

Re: [wxlua-users] 2.9.3 with cmake ubuntu

2012-04-11 Thread John Labenski
On Wed, Apr 11, 2012 at 4:02 PM, klaas.holwerda n...@klaasholwerda.nl wrote: Hi, I am trying to compile wxLua and wxCode its stedit for wxWidgets2.9.3, on Ubuntu 64 bit. stedit i finally managed. By forcing it to use (else could not be detected):     set(IS_32_BIT FALSE)     set(IS_64_BIT

Re: [wxlua-users] Deriving from wxDataObjectSimple

2012-04-11 Thread John Labenski
On Wed, Apr 11, 2012 at 5:38 PM, strawman straw...@lavabit.com wrote: Thanks for the update; the example above works as shown, however it doesn't seem to play nicely with the clipboard: fmt = wx.wxDataFormat(HTML Format) obj = wx.wxLuaDataObjectSimple(fmt) obj.data = test function

Re: [wxlua-users] Deriving from wxDataObjectSimple

2012-04-13 Thread John Labenski
ps. Do a SVN update. I had the signature wrong on wxLuaDataObjectSimple::SetData() so it would never be called by wxWidgets. Regards, John -- For Developers, A Lot Can Happen In A Second. Boundary is the first to

Re: [wxlua-users] Latest Windows build created in 2009

2012-04-13 Thread John Labenski
On Fri, Apr 13, 2012 at 5:16 PM, jimmy coyne jimmy_co...@yahoo.com wrote: Hi, I just started to learn Lua and searching for a GUI library, wxLua looks like a popular and well respected choice. My first concern (well only one at this stage :-) ) was the date of the last build on windows, which

Re: [wxlua-users] 2.9.3 with cmake ubuntu

2012-04-17 Thread John Labenski
On Sun, Apr 15, 2012 at 9:53 AM, klaas.holwerda n...@klaasholwerda.nl wrote: [ 19%] Building CXX object modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_gdi.cpp.o /home/klaas/soft/wxlua/trunk/wxLua/modules/wxbind/src/wxcore_gdi.cpp: In function ‘int

Re: [wxlua-users] Multibyte characters not working with Unicode build

2012-04-18 Thread John Labenski
On Tue, Apr 17, 2012 at 11:52 PM, strawman straw...@lavabit.com wrote: With a Unicode build of wxMSW and wxLua, trying to access any string containing multibyte characters (e.g. with wxTextCtrl::GetValue) returns nil.  The same issue is present in the wxLua editor; if any multibyte characters

Re: [wxlua-users] change to editor.lua

2012-05-01 Thread John Labenski
On Tue, May 1, 2012 at 4:32 PM, Andre Arpin ar...@kingston.net wrote: Please change at line 980 wx.wxSAVE to wx.wxFD_SAVE Is there any reason? It's true that wxSAVE is deprecated since 2.8 and this should be done, but I'm just wondering why this stands out to you. I think that very soon I will

Re: [wxlua-users] Multibyte characters not working with Unicode build

2012-05-01 Thread John Labenski
On Fri, Apr 20, 2012 at 1:49 AM, strawman straw...@lavabit.com wrote: What is the text that you are trying to use? requirewx a = wx.wxTextEntryDialog(wx.wxFrame(), test тест テスト) a:ShowModal() print(a:GetValue()) The caption appears as test and then garbage characters, and if I paste test

Re: [wxlua-users] Need advise on closing a script's top level window

2012-05-01 Thread John Labenski
On Tue, May 1, 2012 at 8:52 PM, Steve Murphree smu...@smcomp.com wrote: I've managed to integrate wxLua into a DLL that my application uses.  The DLL is purely there to provide script capabilities.  When a user wants to run a script, the action ends up in the DLL which uses the following code:

Re: [wxlua-users] Using wxWidgets 2.9.3

2012-05-01 Thread John Labenski
On Thu, Apr 26, 2012 at 8:54 AM, Andre Arpin ar...@kingston.net wrote: I am using visual studio 2008 Overall the port went well. You are using the CMake build? wx.dll does not work quite right any more. I will look at it later. I have not really tested the wx.dll built by CMake. I was

Re: [wxlua-users] Using wxWidgets 2.9.3

2012-05-02 Thread John Labenski
On Wed, May 2, 2012 at 2:25 PM, Andre Arpin ar...@kingston.net wrote: John Labenski jlabenski@... writes: You are using the CMake build? no visual studio 2008 had to make a few changes to the projects. Try the CMake projects. The Visual Studio projects are generated from Bakefile

Re: [wxlua-users] CMake

2012-05-04 Thread John Labenski
On Fri, May 4, 2012 at 12:31 PM, Andre Arpin ar...@kingston.net wrote: John Labenski jlabenski@... writes: OK there is a light at the end of the tunnel. using the following batch cd E:\wxWidgets\wxLua\ md cmake cd cmake cmake -trace -G Visual Studio 9 2008 -DwxWidgets_ROOT_DIR:STRING=E

Re: [wxlua-users] utf8 quick and dirty

2012-05-09 Thread John Labenski
On Wed, May 9, 2012 at 2:45 PM, Andre Arpin ar...@kingston.net wrote: Hi,        wxString str = wxString(luastr, wxConvUTF8);        return str.Length()==0 ? wxString(luastr) : str; This solution may look crazy but works surprisingly well. We have no idea what kind of file has just been

Re: [wxlua-users] problem and solution if using MSBuild with cmake generated sln

2012-05-10 Thread John Labenski
On Thu, May 10, 2012 at 8:51 AM, Andre Arpin ar...@kingston.net wrote: Hi, I am using a batch to make wxLua MSBuild wxLua.sln /t:build /p:Configuration=Debug Problem: The sln contains some errors that Visual Studio ignores but MSBuild detects. What is the error message? Solution: open

Re: [wxlua-users] wxDatePickerCtrl

2012-05-17 Thread John Labenski
On Thu, May 17, 2012 at 3:00 PM, Milind Gupta milind.gu...@gmail.com wrote: Hi, I have a wxDatePickerCtrl where I set Allow None in the property (wxDP_ALLOWNONE) and it shows me a checkbox. If the checkbox is unchecked the control is grayed out. But with it unchecked if I query the GetValue I

Re: [wxlua-users] ParseDate

2012-05-17 Thread John Labenski
wx.wxDateTime():ParseDate(25 may 2012, wx.wxString_const_iterator()) works and returns the same value as IsValid but is a bit overwhelming. Yes, I can simply override it and return two values, [bool success, integer position of error], but the position will only be valid for non-unicode

Re: [wxlua-users] wxlua watch expression doesn't work

2012-05-17 Thread John Labenski
On Thu, Jan 5, 2012 at 6:36 PM, Milind Gupta milind.gu...@gmail.com wrote: Hi,      Posting the message again to find out if it is possible to watch value of keys inside a table. When I tried that the watch just gives an error message saying:    string:Lua:Syntax error during pre-compilation ?

Re: [wxlua-users] Linking statically and registering it

2012-05-22 Thread John Labenski
On Tue, May 22, 2012 at 11:58 AM, Sven Andersson m...@svenandersson.se wrote: However, I have a quick question regarding how to use it; Would it be possible to link the lib statically, and register the wxWidgets functionality/bindings directly to my already existing lua_State object? Yes.

Re: [wxlua-users] wxDateTime

2012-06-06 Thread John Labenski
On Tue, Jun 5, 2012 at 10:46 AM, Блажнов Валерий vblazh...@yandex.ru wrote: There are no wxWidgets GetDay(), GetMonth(), GetYear() methods in wxLua wxDateTime. How to get day, month and year values from wxDateTime object? Oops, there are now in the SVN development version. I would like to

Re: [wxlua-users] wxCalendarCtrl

2012-06-07 Thread John Labenski
On Thu, Jun 7, 2012 at 11:47 AM, Блажнов Валерий vblazh...@yandex.ru wrote: Got the strange difference between event:GetDate() and calendar:GetDate() in wxCalendarCtrl event handler. If I use dt = calendar:GetDate() directly (ignoring event argument) for saving wxDateTime value then I have

Re: [wxlua-users] Linking statically and registering it

2012-06-08 Thread John Labenski
On Thu, Jun 7, 2012 at 7:20 AM, Sven Andersson m...@svenandersson.se wrote: I have a quick question regarding licensing; Since we are considering a commercial release sometime in the future, we would like to avoid our code base being forced under the L-GPL license. AFAIK we can accomplish

Re: [wxlua-users] wxCalendarCtrl

2012-06-11 Thread John Labenski
On Fri, Jun 8, 2012 at 2:10 AM, Блажнов Валерий vblazh...@yandex.ru wrote: Please, see the test attached. Change the date, press OK and get broken date. I don't have an unrar program on Linux. Can you simply post the code (it should be short) or zip it. Thanks, John

Re: [wxlua-users] stedit lib location

2012-06-12 Thread John Labenski
On Tue, Jun 12, 2012 at 3:24 PM, klaas.holwerda n...@klaasholwerda.nl wrote: Busy making wxLua compile on Centos 64but, in general same issues as found with Ubuntu. It should compile without a problem in Centos as I use RHEL6 regularly without any problems. I just built it yesterday. Can you

Re: [wxlua-users] wxLua and UTF8 encoding on Windows

2012-06-14 Thread John Labenski
On Tue, Jun 12, 2012 at 12:58 AM, Paul K paulclin...@yahoo.com wrote: Hi John, Can you paste this into the editor from Firefox? It works fine in Linux with the Unicode build. Sanskrit: काचं शक्नोम्यत्तुम् । नोपहिनस्ति माम् ॥ I don't have access to a Linux machine, but tried on MacOS (with

Re: [wxlua-users] Key events

2012-06-19 Thread John Labenski
On Tue, Jun 19, 2012 at 2:11 PM, Milind Gupta milind.gu...@gmail.com wrote: Hi,         I am trying to associate key events with a frame but it doesn't seem to be working. I am doing this: frame:Connect(ID_FRAME, wx.wxEVT_CHAR, CharKeyEvent) You probably can't focus the frame if you have a

Re: [wxlua-users] Key events

2012-06-20 Thread John Labenski
On Wed, Jun 20, 2012 at 8:48 AM, Andre Arpin ar...@kingston.net wrote: Milind Gupta milind.gupta@... writes: Thanks John for the quick reply. I changed the connect statement to : frame:Connect(ID_FRAME, wx.wxEVT_CHAR_HOOK, CharKeyEvent) That seems to be catching all keys except the

Re: [wxlua-users] wxWidgets 2.9.3 cmake and mingw

2012-06-20 Thread John Labenski
On Wed, Jun 20, 2012 at 4:46 PM, João Mendes lord@gmail.com wrote: CMake Error: INSTALL(EXPORT wxLua_export ...) includes target wxLuaModule which requires target LuaLibShared that is not in the export set. Fixed in SVN now. After that i try a new approach: 1º - Compile wx 2.9.3 with:

Re: [wxlua-users] Key events

2012-06-21 Thread John Labenski
On Thu, Jun 21, 2012 at 8:12 AM, Andre Arpin ar...@kingston.net wrote: -- Could this be tried on unix -- Type an 'a'. Enable caps lock and type another 'a' -- is the keycode 65 in both cases. -- Note: There does not seem to be any way to find out if 'a' is capitalize. --       You get a

Re: [wxlua-users] wxWidgets 2.9.3 cmake and mingw

2012-06-22 Thread John Labenski
On Thu, Jun 21, 2012 at 8:37 AM, João Mendes lord@gmail.com wrote: Do a SVN Command Update Updating D:\_app\wxLua\trunk\wxLua\CMakeLists.txt Completed At revision: 91 But CMake error persists. Ok, try again. Not sure why I don't get the error, perhaps a different version of CMake, I use

Re: [wxlua-users] wxWidgets 2.9.3 cmake and mingw

2012-06-25 Thread John Labenski
On Mon, Jun 25, 2012 at 1:51 PM, João Mendes lord@gmail.com wrote: D:\_app\wxLua\trunk\wxLua\build\cmakemingw32-make ... Linking C shared library ..\..\bin\libwxlua_lua_shared-wx29mswd-2.9.4.dll Creating library file: ..\..\lib\libwxlua_lua_shared-wx29mswd-2.9.4.dll.a

Re: [wxlua-users] wxWidgets 2.9.3 cmake and mingw

2012-06-27 Thread John Labenski
On Wed, Jun 27, 2012 at 11:02 AM, João Mendes lord@gmail.com wrote: I could almost using cmake. Attached the output generated by mingw32-make when i try compile. I'm glad you noticed the update, I build wxWidgets trunk and wxLua using mingw without a hitch after the last fixes. I believe

[wxlua-users] wxLua install.html for CMake

2012-06-27 Thread John Labenski
I've updated the install.html file for using the new CMake build files. I hope it makes some sense and every build in it was tested as written. http://wxlua.svn.sourceforge.net/viewvc/wxlua/trunk/wxLua/docs/install.html I've also added a svn:externals to grab wxstedit from wxCode so that should

Re: [wxlua-users] Apps fail to build against wx with -fno-exceptions

2012-06-27 Thread John Labenski
On Tue, Jun 26, 2012 at 8:56 AM, strawman straw...@lavabit.com wrote: wxLua from SVN builds successfully against wxMSW 2.9.3 with USE_EXCEPTIONS=0 (-fno-exceptions) set in wx's config.gcc, but building apps fails with the attached error.  Using -fno-exceptions in wxLua's makefile causes no

Re: [wxlua-users] UPDATE_UI events not triggered for menu items in full-screen mode

2012-06-28 Thread John Labenski
On Thu, Jun 28, 2012 at 1:50 AM, Paul K paulclin...@yahoo.com wrote: Hi John, I think this is a bug in wxwidgets, but I'm looking for suggestions about a workaround. ... This is on Win32 using wxwidgets 2.8.7. Thank you. Try these newer binaries:

[wxlua-users] Preliminary wxLua Binaries for 2.8.12 for MSW

2012-06-28 Thread John Labenski
These are not well tested and things are not as complete as I would like, but better sooner than never. https://sourceforge.net/projects/wxlua/files/wxlua/2.8.12.0/ Enjoy! -John Labenski -- Live Security Virtual

Re: [wxlua-users] Preliminary wxLua Binaries for 2.8.12 for MSW

2012-06-30 Thread John Labenski
On Fri, Jun 29, 2012 at 2:34 AM, Paul K paulclin...@yahoo.com wrote: Hi John, Thank you for making the binaries available! I gave the Unicode binaries a try, but the results are a mixed bag. I can barely get them running for my application, which allows me to confirm that UTF-8 encoding is

Re: [wxlua-users] Preliminary wxLua Binaries for 2.8.12 for MSW

2012-06-30 Thread John Labenski
On Fri, Jun 29, 2012 at 2:51 AM, Paul K paulclin...@yahoo.com wrote: Hi John, Couple of other things. The new version seems to be using significantly less memory. When I can get the app to start, it's only using about 7.8M memory, where the old one was using 13-14M. This may be related to

Re: [wxlua-users] Preliminary wxLua Binaries for 2.8.12 for MSW

2012-06-30 Thread John Labenski
On Fri, Jun 29, 2012 at 3:14 AM, Paul K paulclin...@yahoo.com wrote: Hi John, One more update. I didn't mention how I got the app running, which is the best configuration I can get so far. I deployed wx.dll and wxlua_lua_shared-wx28mswu-2.8.12.dll as well as lua_shared.exe (renamed as

Re: [wxlua-users] change to lua module.cpp

2012-06-30 Thread John Labenski
On Sun, Nov 21, 2010 at 8:06 AM, Andre Arpin ar...@kingston.net wrote: Hi After restarting the chnage does not work you have to do it explicitly which is a bind. This is ridiculous and probably a bug in system 7. // Override the base class virtual functions bool wxLuaModuleApp::OnInit()

Re: [wxlua-users] Preliminary wxLua Binaries for 2.8.12 for MSW

2012-06-30 Thread John Labenski
Ok... lets start fresh and not try to debug the old stuff. Download 2.8.12.1 and try it. I have tested with luasocket-2.0.2-lua-5.1.2-Win32-vc8.zip downloaded from Lua binaries and it works. This is how I did it, put luasocket's bin/ mime/ socket/ dirs as subdirs of the wxLua/bin dir (or

Re: [wxlua-users] Preliminary wxLua Binaries for 2.8.12 for MSW

2012-07-01 Thread John Labenski
On Sat, Jun 30, 2012 at 9:00 PM, Paul K paulclin...@yahoo.com wrote: Couple of things that are not working. Shortcuts in the full screen mode I reported earlier are not working. Either something has changed or I did not test them correctly with the previous version. I would test the old

Re: [wxlua-users] wxPopupWindow patch

2012-07-01 Thread John Labenski
On Thu, Jun 28, 2012 at 9:38 AM, Qito Nomnom qito.nom...@gmail.com wrote: Hi everybody. I found out that there is no bindings for wxPopupWindow and wxPopupTransientWindow classes. I am using popup windows in my project, so i wrote bindings, they are in attachment Thank you very much, applied

Re: [wxlua-users] compiling in release mode

2012-07-03 Thread John Labenski
On Tue, Jul 3, 2012 at 8:39 AM, Andre Arpin ar...@kingston.net wrote: macro: WX_SET_LIBRARIES Please help me by briefly noting where things like this are so I don't have to search for them. FindwxWidgets.cmake is CMake's function to find wxWidgets and is very strangely written. I made a copy

Re: [wxlua-users] Preliminary wxLua Binaries for 2.8.12 for MSW

2012-07-03 Thread John Labenski
On Sun, Jul 1, 2012 at 11:50 PM, Paul K paulclin...@yahoo.com wrote: How exactly are you using the coroutines? You're creating one to run a Lua script and somehow debug it. Can the wxFrame live for longer than the life of coroutine? No, wxFrame can't live for longer than the life of

Re: [wxlua-users] Can't compiling monolithic lib on MacOS

2012-07-04 Thread John Labenski
On Wed, Jul 4, 2012 at 7:44 PM, Paul K paulclin...@yahoo.com wrote: Hi John, I'm having troubles compiling monolithic dylib on MacOS. I've read the Try using cmake, I have not been able to test in OSX for some time and won't be able to until next week. Hopefully there wasn't too much breakage

Re: [wxlua-users] Multiple view with StyledTextCtrl

2012-07-29 Thread John Labenski
On Fri, Jul 27, 2012 at 1:21 AM, Paul K paulclin...@yahoo.com wrote: Does anyone have an example of how I can implement multiple views in wxLua? I have read through this description (http://www.yellowbrain.com/stc/mult_views.html), but still can't figure out what the required calls are. See

Re: [wxlua-users] wxThread Status

2012-07-29 Thread John Labenski
On Sat, Jul 7, 2012 at 8:44 PM, Anders Andersson alloni...@gmail.com wrote: Perhaps a little late... I wonder why there is no wxLua development branch for wxWidgets 2.9.x, currently there are a lot checkver in the interface files. Wouldn't it be easier to create a wxLua dev branch and try

Re: [wxlua-users] Compiling monolithic version on Windows (using 2.8.12.2)

2012-08-10 Thread John Labenski
On Thu, Aug 9, 2012 at 2:12 AM, Paul K paulclin...@yahoo.com wrote: Hi John, I think I'm close, but still not there yet. I did get luawx.dll library, but it's 12+M in size and it depends on libwxlua_lua51-wx28mswu-2.8.12.dll (which seems to be a renamed lua It is the Lua library dll named so

Re: [wxlua-users] Revision 116

2012-08-14 Thread John Labenski
On Tue, Aug 14, 2012 at 8:14 AM, Andre Arpin ar...@kingston.net wrote: I do not know why the assert for joysticks but catch works perfectly well using arrow keys at least on window. Andre There's no problem with not having a physical joystick, but the check is whether wxJoyStick is supported

Re: [wxlua-users] run application in windows and linux

2012-08-16 Thread John Labenski
On Thu, Aug 16, 2012 at 1:54 PM, Milind Gupta milind.gu...@gmail.com wrote: Hi, I have made this lua application using wxLua and I created an exe using wxluafreeze. The program requires a LuaXML_lib.dll/so file. Both files I have put in the same directory as the exe. Also in my lua code

Re: [wxlua-users] wx.so library in linux

2012-08-19 Thread John Labenski
On Fri, Aug 17, 2012 at 2:52 AM, Milind Gupta milind.gu...@gmail.com wrote: Hi, I used wxluafreeze to convert my application to an executable file in linux. But I see that the wx.so file that I have in linux is 446KB while in windows wx.dll was 5.7MB and there is a similar difference

Re: [wxlua-users] GetCwd() doesn't return unicode path on windows

2012-08-19 Thread John Labenski
On Thu, Aug 16, 2012 at 11:24 AM, Paul K paulclin...@yahoo.com wrote: It seems like I can't get a proper unicode path from GetCwd() on windows using wxLua 2.8.12.2. Using the unicode build right? I'm running the following code: wx.wxFileName.SetCwd(D:\\Lua\\下载\\);

Re: [wxlua-users] GetCwd() doesn't return unicode path on windows

2012-08-22 Thread John Labenski
On Sun, Aug 19, 2012 at 11:07 PM, Paul K paulclin...@yahoo.com wrote: Hi John, Does wx.wxFileName.FileExists(SomethingInThatDir.txt) work, showing that SetCwd() worked? If so then, it'd be a problem with GetCwd(), but I cannot think of any reason why it wouldn't work off the top of my

<    1   2   3   4   5   6   7   8   >