Re: [wxlua-users] How to check type when iterating over wxWindowList

2012-06-14 Thread Paul K
Hi John, This looks like exactly the information I was looking for. DynamicCast is the method I was missing. Thank you for the detailed examples. Paul. On Tue, Jun 12, 2012 at 8:57 PM, John Labenski jlaben...@gmail.com wrote: On Tue, Jun 12, 2012 at 2:26 AM, Paul K paulclin...@yahoo.com wrote

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

2012-06-27 Thread Paul K
Hi John, I think this is a bug in wxwidgets, but I'm looking for suggestions about a workaround. Essentially, if the application has menu items that change their state, the change in that state is not detected when the application is in full screen mode (and the menu is hidden). The same issue

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

2012-06-29 Thread Paul K
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 now working, but other encodings stopped working. For example, if I set

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

2012-06-29 Thread Paul K
messages we used to be getting seem to be coming from wxString wxlua_LUA_ERR_msg(int LUA_ERRx) function in wxlstate.cpp with the value LUA_ERRRUN. I'm not sure why the new version doesn't trigger/report that anymore. Paul. On Thu, Jun 28, 2012 at 11:34 PM, Paul K paulclin...@yahoo.com wrote: Hi John

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

2012-06-29 Thread Paul K
. On Thu, Jun 28, 2012 at 11:51 PM, 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

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

2012-06-29 Thread Paul K
in full screen with the new binaries, although I only did limited testing because of other problems (as described in the thread about the binaries). Paul. On Thu, Jun 28, 2012 at 10:27 PM, John Labenski jlaben...@gmail.com wrote: On Thu, Jun 28, 2012 at 1:50 AM, Paul K paulclin...@yahoo.com wrote

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

2012-06-30 Thread Paul K
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 now working

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

2012-06-30 Thread Paul K
in troubleshooting. Paul. On Sat, Jun 30, 2012 at 10:34 AM, Paul K paulclin...@yahoo.com wrote: Hi John, (combining responses from three different messages) It all makes sense; I agree on UTF8. You can't always expect that a lib compiled with one version of code to work with another. Ideally you

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

2012-06-30 Thread Paul K
Hi John, 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 huge progress; very close to where I'd like to be. I got the application working with these binaries (including luasocket) and almost all the

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

2012-06-30 Thread Paul K
suggestion is to revert this change. Paul. On Sat, Jun 30, 2012 at 6:00 PM, Paul K paulclin...@yahoo.com wrote: Hi John, 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 huge progress; very close to where

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

2012-07-01 Thread Paul K
jlaben...@gmail.com wrote: 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

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

2012-07-01 Thread Paul K
and run into the same problem. Paul. On Sun, Jul 1, 2012 at 8:50 PM, Paul K paulclin...@yahoo.com wrote: Hi John, Please read this thread to understand a little more about why it was blocked. http://www.mail-archive.com/wxlua-users@lists.sourceforge.net/msg02296.html I read the thread, but don't

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

2012-07-04 Thread Paul K
Hi John, I'm having troubles compiling monolithic dylib on MacOS. I've read the description here (http://wxlua.sourceforge.net/docs/install.html#C4) about SHARED and MONOLITHIC options, but can't find what corresponds to them in the new make configuration. I've tried different combinations, but

[wxlua-users] Compilation error with the latest svn code (rev.102)

2012-07-04 Thread Paul K
Hi John, I'm getting a compilation error on the latest wxlua revision (102) from svn: /Users/paul/svn/wxlua/trunk/wxLua/bk-deps g++ -c -o wxbindcore_dll_wxcore_bind.o -I./.pch/wxprec_wxbindcore_dll -I../modules/wxbind/setup -I../modules -I./.. -I/usr/include/lua5.1 -DWXMAKINGDLL_WXBINDCORE

[wxlua-users] Multiple view with StyledTextCtrl

2012-07-26 Thread Paul K
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. What I want to do is quite simple: I have an editor window that I want to

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

2012-08-08 Thread Paul K
Hi John, I've read through the installation/compilation instructions and am still searching for a combination of settings I need to apply to get one wx.dll produced. Here is the command I used: mingw32-make -f makefile.gcc BUILD=release UNICODE=1 SHARED=1 MONOLITHIC=1 WX_MONOLITHIC=0

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

2012-08-09 Thread Paul K
libwxlua_lua51-wx28mswu-2.8.12.dll? All I need is a standalone wx.dll I can compile in Unicode configuration that I can use with my lua dll. Is this possible? Paul. On Wed, Aug 8, 2012 at 7:22 PM, John Labenski jlaben...@gmail.com wrote: On Wed, Aug 8, 2012 at 8:42 PM, Paul K paulclin...@yahoo.com

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

2012-08-16 Thread Paul K
It seems like I can't get a proper unicode path from GetCwd() on windows using wxLua 2.8.12.2. I'm running the following code: wx.wxFileName.SetCwd(D:\\Lua\\下载\\); print(wx.wxFileName.GetCwd()) and this prints D:\Lua\?? whereas I expect the original path to be printed. SetCwd() returns true. I

[wxlua-users] How to disable logging window with error message in wxlua?

2012-08-16 Thread Paul K
Hi all, I'm working with an application that saves data in files and some of the operations may trigger file errors. I'm handling those errors myself and don't want to see the standard error message shown by wxwidgets. How do I disable it? Here is the code that I have: local file =

Re: [wxlua-users] How to disable logging window with error message in wxlua?

2012-08-16 Thread Paul K
+ wx.wxCENTRE) end end main() wx.wxGetApp():MainLoop() Paul. On Thu, Aug 16, 2012 at 8:21 PM, John Labenski jlaben...@gmail.com wrote: On Thu, Aug 16, 2012 at 10:56 PM, Paul K paulclin...@yahoo.com wrote: Hi all, I'm working with an application that saves data in files and some of the operations

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

2012-08-19 Thread Paul K
As you can see, the file is there, but using the result of GetCwd to set it as the current folder fails (returns false the second time). Paul. On Sun, Aug 19, 2012 at 7:53 PM, John Labenski jlaben...@gmail.com wrote: On Thu, Aug 16, 2012 at 11:24 AM, Paul K paulclin...@yahoo.com wrote

Re: [wxlua-users] debugging lua scripts

2012-08-27 Thread Paul K
Hi Milind, I quickly tried that in wxLua, but couldn't figure out how to specify the folder to run scripts in so that loadfile and io.open would work. I also tried to do this in ZeroBrane Studio (https://github.com/pkulchenko/ZeroBraneStudio) and it seems like it may work for you (the IDE is

[wxlua-users] [ANN] ZeroBrane Studio 0.32; now with unicode support, moai integration, and wxlua 2.8.12 upgrade

2012-09-03 Thread Paul K
(crossposting to wxlua-users as this is a wxlua-based application; thanks to John Labenski for all the support and assistance with wxlua upgrade.) ZeroBrane Studio is a lightweight Lua IDE with code completion, syntax highlighting, live coding, remote debugger, code analyzer, and

Re: [wxlua-users] mingw compiling wxlua problems

2012-09-17 Thread Paul K
Hi Victor, I have always wanted to require wx in a lane but because of only once dll initialization it does not work. I am able to require wx from a lane if it has not been required from the main lua_State. I might have seen a similar issue, but for a different reason: I wanted to be able to

[wxlua-users] Detecting opening wxChoice on Mac

2012-09-19 Thread Paul K
Hi All, I have a wxChoice dropdown, which I'm populating on wx.wxEVT_SET_FOCUS event. Unfortunately, this event is not triggered on Mac, which seems to be a feature. I found a ticket related to this: http://trac.wxwidgets.org/ticket/10047. The fix seems to be using EVT_CHILD_FOCUS instead of

[wxlua-users] wx.wxMOD_* constants not defined on Mac

2012-09-19 Thread Paul K
Hi John, I just noticed that for some reason wx.wxMOD_NONE is not defined on Mac (wxlua 2.8.12.1) while it is defined correctly on Windows. This breaks logic like event:GetModifiers() == wx.wxMOD_NONE. In fact, it seems like none of the wx.wxMOD_* constants is defined on Mac. GetModifiers()

Re: [wxlua-users] Can't read output with wxPROCESS_REDIRECT and wxEXEC_ASYNC

2012-10-01 Thread Paul K
) proc:Redirect() wx.wxExecute( cmd, wx.wxEXEC_ASYNC, proc ) I get this code somewhere and work fine for me. -- João Mendes de Oliveira Neto 2012/9/30 Paul K paulclin...@yahoo.com Hi All, I'm trying to read output from a program and am having trouble with the following three lines of code

Re: [wxlua-users] Can't read output with wxPROCESS_REDIRECT and wxEXEC_ASYNC

2012-10-01 Thread Paul K
? Thanks. Paul. ZeroBrane Studio - slick Lua IDE and debugger for Windows, OSX, and Linux - http://studio.zerobrane.com/ On Mon, Oct 1, 2012 at 8:49 PM, John Labenski jlaben...@gmail.com wrote: On Mon, Oct 1, 2012 at 11:41 AM, Paul K paulclin...@yahoo.com wrote: Hi João, Thank you for the solution

Re: [wxlua-users] Can't read output with wxPROCESS_REDIRECT and wxEXEC_ASYNC

2012-10-05 Thread Paul K
the problem end ) proc:Redirect() wx.wxExecute( cmd, wx.wxEXEC_ASYNC, proc ) I get this code somewhere and work fine for me. -- João Mendes de Oliveira Neto 2012/9/30 Paul K paulclin...@yahoo.com Hi All, I'm trying to read output from a program and am having trouble

Re: [wxlua-users] wxlua docs up-to-date? (Windows)

2012-10-12 Thread Paul K
Hi Mike, BUT another thing that I did was to install the ZeroBrane IDE before running the wx examples. Maybe this changes the associated program for .wlua files (which incidentally appears as 'Lua Windows Standalone Interpreter' on my system.) I can tell you to the best of my knowledge

[wxlua-users] Checkboxes don't react to clicks in editor.wx.lua on Mac OSX

2012-10-13 Thread Paul K
Hi John, One of the users noticed that checkboxes in Find/Replace dialogs in ZeroBraneStudio don't react to clicks on Mac OSX; I tested Find/Replace dialog in your editor.wx.lua sample and it shows exactly the same issue (using wxlua 2.8.12.1). Other checkboxes (for examples in controls.wx.lua)

Re: [wxlua-users] Checkboxes don't react to clicks in editor.wx.lua on Mac OSX

2012-10-13 Thread Paul K
on how to fix this? Paul. On Sat, Oct 13, 2012 at 11:07 AM, Paul K paulclin...@yahoo.com wrote: Hi John, One of the users noticed that checkboxes in Find/Replace dialogs in ZeroBraneStudio don't react to clicks on Mac OSX; I tested Find/Replace dialog in your editor.wx.lua sample

Re: [wxlua-users] Checkboxes don't react to clicks in editor.wx.lua on Mac OSX

2012-10-16 Thread Paul K
for a fix/workaround. Is there an easy way to check what object gets those clicks and to propagate the clicks to my checkboxes? Paul. On Sat, Oct 13, 2012 at 11:29 AM, Paul K paulclin...@yahoo.com wrote: Hi John, I think it's indeed a sizer-related issue; for example, if I comment out

Re: [wxlua-users] Checkboxes don't react to clicks in editor.wx.lua on Mac OSX [fixed]

2012-10-16 Thread Paul K
of the checkboxes get their events on OSX (you can still click on the area of the checkbox label if it sticks outside of the static box). Paul. On Tue, Oct 16, 2012 at 11:27 AM, Paul K paulclin...@yahoo.com wrote: Hi John, Ok, I narrowed it down to a problem with wxStaticBoxSizer as the following

Re: [wxlua-users] WxApp::FilterEvent available in wxlua?

2012-10-17 Thread Paul K
. Paul. On Wed, Oct 17, 2012 at 9:00 PM, John Labenski jlaben...@gmail.com wrote: On Wed, Oct 17, 2012 at 7:26 PM, Paul K paulclin...@yahoo.com wrote: Hi All, I've been looking for a way to process events globally in the app and saw FilterEvent (http://docs.wxwidgets.org/2.8/wx_wxapp.html

Re: [wxlua-users] WxApp::FilterEvent available in wxlua?

2012-10-18 Thread Paul K
now, but couldn't find it. Paul. On Thu, Oct 18, 2012 at 9:43 PM, John Labenski jlaben...@gmail.com wrote: On Thu, Oct 18, 2012 at 11:14 PM, Paul K paulclin...@yahoo.com wrote: Hi John, If you can you explain what you are trying to do I might be able to help. Sure; I'm trying to detect idle

[wxlua-users] [ANN] ZeroBrane Studio 0.33; now with Linux support, Gideros debugging, and MOAI auto-complete

2012-10-29 Thread Paul K
ZeroBrane Studio is a lightweight Lua IDE with code completion, syntax highlighting, live coding, remote debugger, code analyzer, and hypertext/markdown formatting support for integrating learning materials (examples and demos provided). The IDE is available at http://studio.zerobrane.com/. The

Re: [wxlua-users] wxEVT_STC_STYLENEEDED is not called in wxlua 2.8.12.2?

2012-11-15 Thread Paul K
SCLEX_CONTAINER, but still make a call that will apply styling using some lexer (for example, Lua) and I'll do the rest of the styling as needed? Paul. On Thu, Nov 15, 2012 at 1:12 PM, John Labenski jlaben...@gmail.com wrote: On Thu, Nov 15, 2012 at 3:56 PM, Paul K paulclin...@yahoo.com wrote: Hi John

Re: [wxlua-users] Multiple views for wxSTC in wxlua

2013-01-30 Thread Paul K
Please update from SVN, it should work now. Sorry, I was not correctly handling the void* DocPointers pushed as lightuserdata into Lua correctly. Works now; thanks John! Paul. On Tue, Jan 29, 2013 at 9:18 PM, John Labenski jlaben...@gmail.com wrote: On Tue, Jan 29, 2013 at 1:53 PM, Paul K

Re: [wxlua-users] GetLineVisible always returns true?

2013-02-25 Thread Paul K
on the screen will be larger than the number in the document). Paul. On Mon, Feb 25, 2013 at 9:28 PM, John Labenski jlaben...@gmail.com wrote: On Mon, Feb 25, 2013 at 1:30 PM, Paul K paulclin...@yahoo.com wrote: In the best tradition of self-answering, it turned out that GetLineVisible doesn't do

Re: [wxlua-users] Patch to wxlua to allow setting event handlers from coroutines

2013-02-28 Thread Paul K
that demonstrates the issue. Paul. On Wed, Feb 27, 2013 at 9:39 PM, John Labenski jlaben...@gmail.com wrote: On Wed, Feb 27, 2013 at 6:26 PM, Paul K paulclin...@yahoo.com wrote: Hi John, I'd like to resurrect this discussion as the issue hasn't been fully put to bed and as I'm preparing

[wxlua-users] Compilation errors with latest wxlua (2.8.12.3; rev 165)

2013-03-06 Thread Paul K
Hi John, I tried to compile the latest wxlua and ran into compilation errors (both on OSX and Windows). I also tried with rev 163 (before Lua 5.2 changes) and compiled it successfully (also on both platforms). The error messages I got are at the bottom of the email. Tangentially related; would

Re: [wxlua-users] Compilation errors with latest wxlua (2.8.12.3; rev 165)

2013-03-07 Thread Paul K
was looking for it in the configure parameters instead of make. Paul. On Wed, Mar 6, 2013 at 11:39 PM, John Labenski jlaben...@gmail.com wrote: On Wed, Mar 6, 2013 at 11:56 PM, Paul K paulclin...@yahoo.com wrote: Hi John, I tried to compile the latest wxlua and ran into compilation errors (both on OSX

Re: [wxlua-users] Compilation errors with latest wxlua (2.8.12.3; rev 165)

2013-03-07 Thread Paul K
.a. Call Stack (most recent call first): cmake_install.cmake:129 (INCLUDE) make: *** [install/strip] Error 1 It would be nice to skip installing components that haven't been built. Paul. On Thu, Mar 7, 2013 at 10:15 AM, Paul K paulclin...@yahoo.com wrote: Hi John, Thanks for reporting, it should

Re: [wxlua-users] Compilation errors with latest wxlua (2.8.12.3; rev 165)

2013-03-08 Thread Paul K
, John Labenski jlaben...@gmail.com wrote: On Thu, Mar 7, 2013 at 2:46 PM, Paul K paulclin...@yahoo.com wrote: Hi John, You can already choose to build whatever libs and apps you want right now. Choose the project you want to build in MSVC or run make help for GCC to list all the targets

Re: [wxlua-users] Compilation errors with latest wxlua (2.8.12.3; rev 165)

2013-03-08 Thread Paul K
recommend simply building it as is and taking the parts you want. That is what I ended up doing. Thanks for taking look at this. Paul. On Fri, Mar 8, 2013 at 10:41 AM, John Labenski jlaben...@gmail.com wrote: On Fri, Mar 8, 2013 at 12:45 PM, Paul K paulclin...@yahoo.com wrote: Hi John, You

[wxlua-users] wxDir is missing Traverse method in wxlua 2.8.12

2013-03-15 Thread Paul K
Hi John, I noticed that wxlua is missing the Traverse method in wxDir object (http://docs.wxwidgets.org/2.8/wx_wxdir.html#wxdirtraverse). Is it possible to add it or is there something more fundamental that prevents it? I'd also like to make sure that wxDirTraverser

Re: [wxlua-users] wxDir is missing Traverse method in wxlua 2.8.12

2013-03-15 Thread Paul K
for my needs. Paul. On Fri, Mar 15, 2013 at 6:24 PM, Paul K paulclin...@yahoo.com wrote: Hi John, I do that now (I use GetFirst() and GetNext()), but it's a bit slow for my purposes. GetAllFiles is much faster, but my main problem with it is that I can't exclude directories I don't need

[wxlua-users] How to configure wxlua to *not* link wxpng library?

2013-03-17 Thread Paul K
Hi John, I ran into an issue with configuring wxlua to use system libpng library. I tried both --with-libpng=builtin and --with-libpng=sys, but I get exactly the same result. This discussion (https://groups.google.com/forum/?fromgroups=#!topic/wx-users/2QWQD0qUVUc) indicates that it's better to

Re: [wxlua-users] svn request password

2013-03-30 Thread Paul K
Hi John, As far as I understand, wxstedit is only needed when wxlua is compiled with wxwidgets 2.8.12; it's no longer required for 2.9.x. Or am I mistaken? If it's not needed for 2.9.x, then svn checkout --ignore-externals can probably be used to skip it (I can't test it at the moment). Paul.

[wxlua-users] RawControlDown, SetRawControlDown, wxMOD_RAW_CONTROL, wxACCEL_RAW_CTRL, and WXK_RAW_CONTROL not present in wxlua 2.8.12.3

2013-04-09 Thread Paul K
Hi John, Would it be possible to add missing calls and constants? Thank you. BTW, ControlDown() has changed its behavior between 2.8 and 2.9 wxwidgets as it used to mean Ctrl on all platforms (with CmdDown() meaning Ctrl/Cmd), but it now means Ctrl/Cmd (and CmdDown() is deprecated).

[wxlua-users] wxTreeCtrl:SetItemState is missing in wxLua 2.8.12.x

2013-04-22 Thread Paul K
Hi John, Can you add wxTreeCtrl:SetItemState (2.9.x call) as well as related constants (wxTREE_ITEMSTATE_*)? The click event for the item state is there (EVT_(COMMAND_)TREE_STATE_IMAGE_CLICK), but not the state setting method. Thank you. Paul.

[wxlua-users] How to install custom EVT_LUA_ERROR handler?

2013-04-22 Thread Paul K
Hi John, I'm trying to provide my own custom error handler that will replace the default dialog shown after run-time errors in wxlua (wxLuaModuleApp::OnLuaError), but I'm having trouble with it as wxEVT_LUA_ERROR doesn't seem to be available to Lua scripts. Was that intentional and is it

Re: [wxlua-users] Debugging wxlua programs in Zerobrane studio

2013-05-14 Thread Paul K
is the UI done in wxlua? If yes how do you implement the main text with down with different colors, breakpoint mark and line numbers? Thanks, Milind On Fri, May 3, 2013 at 9:41 AM, Paul K paulclin...@yahoo.com wrote: Hi All, Does anyone have a simple drag and drop example that works

Re: [wxlua-users] Difference between Lua and wxLua executable

2013-05-18 Thread Paul K
Hi Milind, The only difference should be is that wxluafreeze includes wx library statically compiled (so you don't need anything else) and in other cases your executables expect wx.dll. I'm not sure what graphics are different. Can you do two screenshots and mark the differences on them? I don't

[wxlua-users] How to use wxHandleFatalExceptions and OnFatalExceptions?

2013-06-03 Thread Paul K
Hi John, I've been looking for ways to catch and report run-time errors in the application. Lua errors are covered with your recent support for EVT_LUA_ERROR (http://sourceforge.net/p/wxlua/svn/180/), but there are still fatal exceptions in the application that may happen. As far as I can see

[wxlua-users] Strange (occasional) crash in wxLuaState::LuaPCall

2013-06-12 Thread Paul K
Hi John, I got several reports (from the same machine) of crashes in my application when a user types something in wxSTC control. It's difficult to reproduce and seems to happen infrequently, but the captured stack trace points to wxLuaState::LuaPCall call. This is running wxlua 2.8.12.2 and

Re: [wxlua-users] Strange (occasional) crash in wxLuaState::LuaPCall

2013-06-17 Thread Paul K
Hi John, lua_yield is a coroutine function, are you running coroutines? If so, then Lua will be swapping lua_States in and out and pausing them whenever it wants to, making the stack seem very strange. I do (in general), but it's in a completely different part (for debugging) and is not

Re: [wxlua-users] Adding wxDIR_NO_FOLLOW and GetContentScaleFactor

2013-06-24 Thread Paul K
/OMOTMN-D3F4/ETrm7M7qTpcJ. Thank you! Paul. On Thu, Jun 20, 2013 at 9:34 PM, John Labenski jlaben...@gmail.com wrote: On Thu, Jun 20, 2013 at 11:51 PM, Paul K paulclin...@yahoo.com wrote: Hi John, Can you add a new method GetContentScaleFactor that can be used to detect Retina displays (https

[wxlua-users] wxlua trunk build fails on Windows using Mingw

2013-07-19 Thread Paul K
Hi John, I tried to compile the current trunk on Windows using mingw and ran into a compilation error: ...wxLua/modules/wxbind/src/wxcore_bind.cpp: In member function 'virtual bool wxLuaBinding_wxcore::RegisterBinding(const wxLuaState)': ...wxlua/wxLua/modules/wxbind/src/wxcore_bind.cpp:7495:46:

[wxlua-users] Using wxlua with Lua 5.1 and Twoface ABI mapper

2013-07-19 Thread Paul K
Hi John, I've been looking into using twoface ABI mapper (http://corsix.github.io/twoface/) to run ZeroBrane Studio on top of Lua 5.2 without recompiling wxlua and luasocket (both are compiled for Lua 5.1). For those not familiar with it, it allows to run Lua 5.2 engine with modules compiled for

Re: [wxlua-users] Using wxlua with Lua 5.1 and Twoface ABI mapper

2013-07-20 Thread Paul K
at 11:26 AM, John Labenski jlaben...@gmail.com wrote: On Fri, Jul 19, 2013 at 7:54 PM, Paul K paulclin...@yahoo.com wrote: Hi John, I've been looking into using twoface ABI mapper (http://corsix.github.io/twoface/) to run ZeroBrane Studio on top of Lua 5.2 without recompiling wxlua

Re: [wxlua-users] Crash on lua_close() [was: Using wxLua with Lua 5.0.2]

2013-08-09 Thread Paul K
Hi Andreas, So somebody who knows the internals of wxLua wxWidgets should probably be able to find the problem pretty quickly. For me it's complicated because I hardly know anything about C++. I have 15+ years of experience in plain C but C++ still makes me shiver :) That's why it's very

Re: [wxlua-users] Difference between Lua and wxLua executable

2013-08-18 Thread Paul K
I'm very interested in what manifest needs to be used as well. My executable *does* include a manifest, but it doesn't statically compile wx.dll and loads it at run-time. My calendar looks like a generic one (the one that Milind has on the left side), so I either need to have a different content

Re: [wxlua-users] How to accept drag and drop files on all platforms?

2013-08-23 Thread Paul K
Anyone has an example that allows to accept a filename after DD that works on Windows/OSX/Linux? Nobody knows? John? I'll be happy with any hints I can try... Paul. On Sat, Aug 3, 2013 at 9:11 PM, Paul K paulclin...@yahoo.com wrote: Hi All, I'm trying to make my application accept files

Re: [wxlua-users] Difference between Lua and wxLua executable

2013-08-23 Thread Paul K
Hi John, After that wxlua and lua produce the same (calendar) results. You can also tweak the manifest before embedding it to see the effect. Were you able to reproduce the same effect? Paul. On Mon, Aug 19, 2013 at 8:44 PM, Paul K paulclin...@yahoo.com wrote: Hi John, I just added

Re: [wxlua-users] How to accept drag and drop files on all platforms?

2013-08-25 Thread Paul K
appreciate if you could add the missing functions and provided a simple example I can use as a starting point. Thank you! Paul. On Sun, Aug 25, 2013 at 9:06 PM, John Labenski jlaben...@gmail.com wrote: On Fri, Aug 23, 2013 at 2:16 AM, Paul K paulclin...@yahoo.com wrote: Anyone has an example

[wxlua-users] Can't call some wxKeyboardState methods on wxMouseEvent, but should

2013-09-08 Thread Paul K
Hi John, I'm trying to call wx.wxMouseEvent():GetModifiers(), but get wxLua: Unable to call an unknown method 'GetModifiers' on a 'wxMouseEvent' type. wxMouseEvent is inherited from wxKeyboardState (among other things), so it should definitely work. In fact, I can call some methods (like

Re: [wxlua-users] Can't call some wxKeyboardState methods on wxMouseEvent, but should

2013-09-11 Thread Paul K
Hi John, That function (and class hierarchy) only exists in wxWidgets 2.9 onwards. It's just an alternative to the current ControlDown(), AltDown(), ShiftDown() functions. Will those work for you in the near term? Yes, but instead of checking event:GetModifiers() == wx.wxMOD_CONTROL I need

[wxlua-users] wxlua fails to build against LuaJIT 2.0.2

2013-09-11 Thread Paul K
Hi John, I'm trying to build wxlua against LuaJIT and get compilation errors. I know, I can build against normal Lua 5.1 and use it with LuaJIT (and that's exactly what I'm doing now), but I'd like to avoid that extra step if possible. These are the errors: ../wxLua/modules/wxlua/lbitlib.c:83:

Re: [wxlua-users] BUILD_INSTALL_PREFIX is not respected in wxlua trunk (most likely broken in r190 or later)

2013-09-11 Thread Paul K
Hi John, since CMake advertises that CMAKE_INSTALL_PREFIX is the install dir I went back to using that to make it more familiar to CMake users. yes, replacing BUILD_INSTALL_PREFIX with CMAKE_INSTALL_PREFIX worked. Thank you. Paul.

Re: [wxlua-users] Adding QueueEvent to wxEvtHandler

2013-09-19 Thread Paul K
Hi John, I added it, but note that is only safer for multi-threaded programs, to be sure coroutines are single-threaded Thank you; I still get occasional crash on win7 64bit that I attribute to AddPendingEvent and QueueEvent may eliminate it. Paul.

Re: [wxlua-users] wxWindows 3.0.0, wxLua 2.8.12.3 and OS X?

2013-11-16 Thread Paul K
Hi Kent, I just compiled my wxlua based application with wxwidgets 3.0 couple of days ago and haven't seen any issues/crashes yet. I'll try to run the samples tomorrow (don't have access to my MacBook right now) to check if there are any issues with them. - Is this setup supposed to work at

Re: [wxlua-users] Debugger done in wx.lua

2013-11-24 Thread Paul K
Hi Lucas, I wonder if there is any debugger done in wx.lua that have function Step In Step out.Tenho wxLua on a project at my college (UFOP) in Brazil and need such a function to be used in my code. Yes, there is an example in samples/editor.wx.lua, which implements step-in and step-out

[wxlua-users] Adding CallAfter and wxSTC:GetLibraryVersionInfo

2013-12-13 Thread Paul K
Hi John, Would it be possible to add CallAfter (http://wxwidgets.blogspot.com/2013/01/about-benefits-of-procrastination.html) and wxSTC:GetLibraryVersionInfo calls? Thank you. Paul. -- Rapidly troubleshoot problems

[wxlua-users] How to provide wxApp::MacNewFile, wxApp::MacOpenFiles, and wxApp:MacReopenApp methods?

2013-12-24 Thread Paul K
Hi John, I'm looking for a way to provide MacNewFile, MacOpenFiles, and MacReopenApp methods (http://docs.wxwidgets.org/trunk/classwx_app.html), but can't figure out how to do this in wxlua and don't see this in any of the examples. Can these be used somehow or do they need to be added to the

[wxlua-users] Adding wxRegKey

2013-12-24 Thread Paul K
Hi John, Would it be possible to add a binding for wxRegKey: http://docs.wxwidgets.org/trunk/classwx_reg_key.html? Thank you! Paul. -- Rapidly troubleshoot problems before they affect your business. Most IT

Re: [wxlua-users] Adding wxRegKey

2013-12-25 Thread Paul K
:36 PM, John Labenski jlaben...@gmail.com wrote: On Wed, Dec 25, 2013 at 1:42 AM, Paul K paulclin...@yahoo.com wrote: Hi John, Would it be possible to add a binding for wxRegKey: http://docs.wxwidgets.org/trunk/classwx_reg_key.html? Thank you! Yes, and for the other things too

[wxlua-users] Build issues using mingw on Windows with trunk

2014-01-03 Thread Paul K
Hi John, I'm trying to compile wxlua using the trunk version and ran into a strange issue that I've never seen before. I went back to r170, but it shows the same issue. Here is the error: d:/Lua/ZBS-build/build/wxlua/wxLua/modules/luamodule/luamodule.cpp:39:77: error: declaration of C function

Re: [wxlua-users] Build issues using mingw on Windows with trunk

2014-01-05 Thread Paul K
Hi John, d:/Lua/ZBS-build/build/wxlua/wxLua/modules/luamodule/luamodule.cpp:39:77: error: declaration of C function 'BOOL DllMain(HANDLE, DWORD, LPVOID)' conflicts with BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID ); Just a quick update on this. I tried

Re: [wxlua-users] Deprecated: GetBeginPos(), GetEndPos1(), and GetEndPos2()

2014-01-07 Thread Paul K
Hi John, I managed to compile wxlua by explicitly adding --enable-compat28 to wxwidgets configuration, but would be nice to update for 3.0. Paul. On Mon, Jan 6, 2014 at 11:00 AM, Paul K paulclin...@yahoo.com wrote: Hi John, I made a copying error: it's GetBeginPos(), GetEndPos1

Re: [wxlua-users] How to provide wxApp::MacNewFile, wxApp::MacOpenFiles, and wxApp:MacReopenApp methods?

2014-01-22 Thread Paul K
that provides the same functionality. Paul. On Tue, Dec 24, 2013 at 9:38 AM, Paul K paulclin...@yahoo.com wrote: Hi John, I'm looking for a way to provide MacNewFile, MacOpenFiles, and MacReopenApp methods (http://docs.wxwidgets.org/trunk/classwx_app.html), but can't figure out how to do this in wxlua

Re: [wxlua-users] Deprecated: GetBeginIter(), GetEndIter1() and GetEndIter2()

2014-01-27 Thread Paul K
I have started to update wxLua for wxWidgets 3.0 without WX_COMPATIBILITY_2_8 defined, but there are far more changes than I expected and it will take a few more days. Great; thank you. Note that wxLua builds ok with compat 28 defined in wx30. Right; this is exactly how I compiled it and

Re: [wxlua-users] How to provide wxApp::MacNewFile, wxApp::MacOpenFiles, and wxApp:MacReopenApp methods?

2014-01-27 Thread Paul K
Hi John, I'm looking for a way to provide MacNewFile, MacOpenFiles, and MacReopenApp methods They need to be added, it should be doable. This would be great; thank you! I'll try to remember, these. I'm glad you have an alternative for wxRegKey, I would rather not add it. CallAfter() may

[wxlua-users] Compilation errors without compat28 setting with the trunk version

2014-02-07 Thread Paul K
Hi John, I came across few more compilation errors when compat28 flag is not used: [ 17%] Building CXX object modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_geometry.cpp.o /home/paul/zbs/build/wxlua/wxLua/modules/wxbind/src/wxcore_defsutils.cpp: In function 'int

Re: [wxlua-users] Compilation errors without compat28 setting with the trunk version

2014-02-07 Thread Paul K
, 2014 at 6:48 PM, Paul K paulclin...@yahoo.com wrote: Hi John, I came across few more compilation errors when compat28 flag is not used: Yes, there are far more differences than I realized, you'll have to use --enable-compat28 for the near future. I have also seen some problems with the wxLua

[wxlua-users] How to make invalid UTF-8 data to appear in wxSTC in Unicode builds?

2014-02-18 Thread Paul K
Hi John, I'm looking for a way to handle (possibly) invalid UTF-8 characters and seem to be missing wxString::From8BitData() and wxString::To8BitData() methods (according to this page: http://docs.wxwidgets.org/trunk/overview_unicode.html#overview_unicode_supportout). What I am trying to do is

Re: [wxlua-users] How to make invalid UTF-8 data to appear in wxSTC in Unicode builds?

2014-02-18 Thread Paul K
Hi John, I'm no expert in UTF8, but isn't it possible that a malformed UTF8 sequence makes the rest of the file unusable in the sense that you can't really be sure how many bytes the 'bad' sequence is so you could be off by a few bytes for the rest of the file? Not really, as you can

Re: [wxlua-users] wxPropertyGrid+wxWebView bindings

2014-02-20 Thread Paul K
I didn't realize we don't have wxWebView binding. I'm very much interested in that as well. I asked previously about wxPropertyGrid, but I believe John said that it's going to be more work than seems from the API, so I found a different way to do what I wanted. Paul. On Thu, Feb 20, 2014 at

Re: [wxlua-users] How to make invalid UTF-8 data to appear in wxSTC in Unicode builds?

2014-02-21 Thread Paul K
: On Wed, Feb 19, 2014 at 1:27 AM, Paul K paulclin...@yahoo.com wrote: Do we also get To8BitData(), as I may need it to save the data back to a file? Yes, note that From8BitData() is static and To8BitData() is not. Regards, John

Re: [wxlua-users] How to provide wxApp::MacNewFile, wxApp::MacOpenFiles, and wxApp:MacReopenApp methods?

2014-03-16 Thread Paul K
Hi John, I'm looking for a way to provide MacNewFile, MacOpenFiles, and MacReopenApp methods (http://docs.wxwidgets.org/trunk/classwx_app.html), but can't figure out how to do this in wxlua and don't see this in any of the examples. They need to be added, it should be doable. Do you

Re: [wxlua-users] Fwd: How to create wxTreeEvent

2014-04-01 Thread Paul K
Hi John, I'm wondering why you want to create a wxTreeEvent? It was to trigger wxEVT_COMMAND_TREE_ITEM_ACTIVATED event manually: wx.wxTreeEvent(wx.wxEVT_COMMAND_TREE_ITEM_ACTIVATED, item_id). Try using item_id:GetValue(). Added in SVN. Thank you! Paul.

Re: [wxlua-users] How to make invalid UTF-8 data to appear in wxSTC in Unicode builds?

2014-04-02 Thread Paul K
Hi John, I honestly don't know. Did you try to call wxSTC::AddTextRaw(const char*)? This function does not do any UTF8 conversions before passing the string to Scintilla. It worked! I wasn't aware of *TextRaw methods and they do exactly what's needed in this case. The only issue is that you

Re: [wxlua-users] How to make invalid UTF-8 data to appear in wxSTC in Unicode builds?

2014-04-08 Thread Paul K
Hi John, I only see AddTextRaw and InsertTextRaw in wxlua; there seems to be GetTextRaw, SetTextRaw, AppendTextRaw, and GetSelectedTextRaw missing from wxlua. Would it be possible to add them? Thank you! I remmed them out, but I don't remember why. I added them back in SVN. Looks good. Thank

[wxlua-users] wxAuiTabArt is missing SetColour and SetActiveColour

2014-04-08 Thread Paul K
Hi John, I just noticed that wxAuiTabArt class is missing SetColour and SetActiveColour methods for some reason. All the others (according to the documentation at http://docs.wxwidgets.org/trunk/classwx_aui_tab_art.html) appear to be present. Would it be possible to add these as well as it

Re: [wxlua-users] wxAuiTabArt is missing SetColour and SetActiveColour

2014-04-12 Thread Paul K
Hi John, A follow-up question on wxAuiTabArt. The class provides ShowDropDown method that displays the list of opened tabs, but I'd like to replace it with something else. Is there a way to overwrite ShowDropDown method with my own? Thank you. Paul. On Tue, Apr 8, 2014 at 4:41 PM, Paul K

Re: [wxlua-users] wxAuiTabArt is missing SetColour and SetActiveColour

2014-05-02 Thread Paul K
methods for wxAuiTabArt class. Thank you! Paul. On Sat, Apr 12, 2014 at 9:12 PM, Paul K paulclin...@yahoo.com wrote: Hi John, A follow-up question on wxAuiTabArt. The class provides ShowDropDown method that displays the list of opened tabs, but I'd like to replace it with something else

Re: [wxlua-users] Latest wxwidgets doesn't compile with wxlua because of undefined wxSTC_COFFEESCRIPT_HASHQUOTEDSTRING

2014-05-05 Thread Paul K
, Apr 12, 2014 at 10:26 AM, Paul K paulclin...@yahoo.com wrote: Hi John, I tried to compile the latest wxlua with the latest wxwidgets and ran into a compilation error: ...wxlua/wxLua/modules/wxbind/src/wxstc_bind.cpp: In function 'wxLuaBindNumber* wxLuaGetDefineList_wxstc(size_t)': ...wxlua

Re: [wxlua-users] Build issue with wxGTK 3.0.1

2014-06-23 Thread Paul K
John, Fixed now in svn, at least for my version of gcc, Fedora 20, gcc 4.8.2. Thank you for the update. Curious, can you run a simple script that checks if GetChildren() is available method for wxWindow? It's been reported that for some reason GetChildren() is not available when compiled with

[wxlua-users] wxDir is missing Close method

2014-07-04 Thread Paul K
Hi John, I just noticed that wxDir is missing Close method for some reason. This creates a problem with those situations when the directory content needs to be enumerated with FindFirst and FindNext and aborted without finishing (as the object seems to keep some of the files in locked state

  1   2   >