Re: [wxlua-users] Questions about bindings

2023-10-22 Thread Paul K
> goes where in wxlua? > > Thanks, > Milind > > On Sun, 22 Oct 2023 at 13:11, Paul K wrote: >> >> Hi Milind, >> >> It works for me: `frame:CallAfter(function() os.exit() end)` is a >> rough equivalent of >> `frame:AddPendingEvent(wx.wxCommandEvent(wx.wxEVT

Re: [wxlua-users] Questions about bindings

2023-10-22 Thread Paul K
re each include file in wxwidgets ends up in wxlua? > > Also since CallAfter was not there when I compiled the latest wxlua with the > latest wxwidgets is there a compile flag to enable it? > > Thanks, > Milind > > > > On Sat, 21 Oct 2023 at 15:12, Paul K wrote: >

Re: [wxlua-users] Questions about bindings

2023-10-21 Thread Paul K
mplates > functions? > > Thanks, > Milind > > On Tue, Oct 17, 2023, 11:41 PM Paul K wrote: >> >> Hi Milind, >> >> > Apart from binding.html is there any other tutorial or cheat sheet how to >> > translate wxWidgets include files to a inte

Re: [wxlua-users] Questions about bindings

2023-10-18 Thread Paul K
Hi Milind, > Apart from binding.html is there any other tutorial or cheat sheet how to > translate wxWidgets include files to a interface file? Not really, but I can suggest looking through some of the existing bindings (including *_override.hpp files), as there is a variety of binding from

Re: [wxlua-users] wxlua release 3.1.0.0

2022-11-07 Thread Paul K
> Yes it work now fine. Thanks Klaas. I published and tagged a new release (v3.2.0.2) with these changes. Paul. On Wed, Nov 2, 2022 at 8:45 AM klaas.holwerda wrote: > > Hi Paul, > > Yes it work now fine. > > Thanks, > > Klaas > > On 02/11/2022

Re: [wxlua-users] wxlua release 3.1.0.0

2022-11-02 Thread Paul K
AWING > > wxRichTextLineList& GetLines(); > > #endif > > #endif > > Maybe that is all to do to fix it. > > Regards, > > Klaas > > On 27/10/2022 03:50, Paul K wrote: > > Hi Klaas, > > With the latest wxWidgets, I had an issue with wxR

Re: [wxlua-users] wxlua release 3.1.0.0

2022-10-26 Thread Paul K
-- > > // Bind class wxRichTextLineList > > // --- > > #if wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS > > #if wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING > > <> > > #endif > > #endif > > #endif // wxLUA_USE_wxRichText && wxC

[wxlua-users] wxlua release 3.1.0.0

2020-09-13 Thread Paul K
Hi wxlua users, I'm glad to announce the release of v3.1.0.0 of wxlua: https://github.com/pkulchenko/wxlua. It adds support for Lua 5.4, implements several new classes (wxDataViewCtrl, wxTranslations), includes a large number of improvements/fixes, and has been tested on the most recent version

Re: [wxlua-users] wxlua upgrade and outstanding issues

2016-06-05 Thread Paul K
Hi Ulrich, > I plan to update ZBS build scripts to support wx.dll building for Lua > 5.2 and Lua 5.3. I pushed the updated scripts to wxwidgets31x-upgrade branch (https://github.com/pkulchenko/ZeroBraneStudio/tree/wxwidgets31x-upgrade) You should be able to run "(cd build; bash build-win32.sh

Re: [wxlua-users] wxlua upgrade and outstanding issues

2016-06-05 Thread Paul K
Hi Ulrich, > I want to build wxlua as a loadable module (.dll) for 5.2 and 5.3 with > wxwidgets statically linked into. > I will try to hack the 5.3 into the CMake files and report my results back to > you. I made some progress, which I think can help in your case. I made several changes to

Re: [wxlua-users] wxlua upgrade and outstanding issues

2016-06-04 Thread Paul K
Hi Ulrich, > I cant link with lua-5.3 right now, can i? At least CMake complains: >> CMake Error at CMakeLists.txt:156 (MESSAGE): >> wxLua_LUA_LIBRARY_VERSION may only be set to '5.1' or '5.2' Right; only Lua 5.1 and 5.2 are currently supported. Are you interested in adding 5.3 as a builtin or

Re: [wxlua-users] Dynamic cast to Lua classes

2016-05-16 Thread Paul K
> I'm trying to use wxEVT_LUA_ERROR and wxEVT_LUA_PRINT form the Lua code, but > can't find any examples on how to set it up. I figured out how to do this; the events are in wxlua namespace, so the following works for me: wx.wxGetApp():Connect(wxlua.wxEVT_LUA_ERROR, function(event) --[[ do

[wxlua-users] Dynamic cast to Lua classes

2016-05-06 Thread Paul K
Hi John, As I've been working through the code to figure out how to inherit a new class from wxApp (similar to how wxLuaPrintout inherits from wxPrintout), I wondered if it's possible to do most of it at the Lua level (with a bit of help from C++). If the binding generator identifies all

Re: [wxlua-users] GL library fails to link on Linux

2016-05-02 Thread Paul K
Hi John, > You can check the wxWidgets config.log and search for opengl and you should > see some messages about detection of gl and whether it was usable. For > example, mine says "wx_cv_use_opengl=wxUSE_OPENGL=yes" and I configured > wxWidgets with --with-opengl. Yes, I was missing the

[wxlua-users] GL library fails to link on Linux

2016-03-31 Thread Paul K
Hi John, I've added "gl" component to my wxwidgets library and am getting an error on Linux (Windows and OSX compiled without issues using the same configure call): [ 97%] Building CXX object modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxlua/wxlstate.cpp.o make[2]: *** No rule to make target

Re: [wxlua-users] wxlua upgrade and outstanding issues

2016-03-23 Thread Paul K
Hi Laurent, > I'm not able to compile some projects because of lack of compatibility with > old wxWidget classes like wxProperty. I'm not sure how wxProperty is involved, but my fork shouldn't *add* any issues as it's based on John's code and I only added updated wxSTC binding (with all the

Re: [wxlua-users] wxlua upgrade and outstanding issues

2016-03-05 Thread Paul K
1), which includes Scintilla 3.6.3. I plan on adding more missing methods/constants to 3.1.0 branch (and rebasing 3.1.1 branch to include Scintilla changes). Please let me know if you notice any issues with the bindings. Paul. On Tue, Feb 9, 2016 at 2:39 PM, Paul K <paulclin...@yahoo.com>

[wxlua-users] wxlua upgrade and outstanding issues

2016-02-02 Thread Paul K
Hi John, wxwidgets team is getting ready to release v3.1.0 in about two weeks and it would be great to refresh the API in wxlua, fix some outstanding issues, and release the next version of wxlua. The upgrade will also include the latest Scintilla version (3.6.3), so it would be ideal to include

Re: [wxlua-users] Memory leak on checking for non-existing fields

2015-11-18 Thread Paul K
Hi John, I ran my sample script through valgrind and it confirmed that the leaked memory is what's being used for strings in error messages. I'm including relevant parts of valgrind reports for different error conditions, but it turned out to be leaking more memory than I thought (1.6k per error

[wxlua-users] wxlua fails to compile with the current wxwidgets head

2015-10-22 Thread Paul K
Hi John, I noticed that wxlua fails to compile with the current wxwidgets as it references GetKeysUnicode and SetKeysUnicode methods for wxStyledTextCtrl, which have been removed in 3.1. Both of the methods need to be marked as !%wxchkver_3_1_0 in wxstc_stc.i and

Re: [wxlua-users] Add methods for wxwidgets 3.x (was: How to provide wxApp::MacNewFile, wxApp::MacOpenFiles, and wxApp:MacReopenApp methods?)

2015-10-21 Thread Paul K
ho can do this or at least to provide some initial implementation. Thank you. Paul. On Sat, Feb 21, 2015 at 2:52 PM, Paul K <paulclin...@yahoo.com> wrote: > Hi John, > > I'm still in need of having MacNewFile, MacOpenFiles, and MacReopenApp > methods (http://docs.wxwidgets.org/trunk/

Re: [wxlua-users] Could not read redirected output for some commands

2015-10-14 Thread Paul K
> The command "cmd /k dir exit" did not work when I ran it from ZBS. What do you mean by "did not work"? This is what I get for that command: Running program: cmd /k dir & exit Pid is 18556 Can Read Volume in drive D is FILES Volume Serial Number is 6AF1-AFBB ... If I pass the wrong command,

[wxlua-users] Memory leak on checking for non-existing fields

2015-09-03 Thread Paul K
Hi John, I noticed that there is a memory leak when wxlua script checks for non-existing properties inside pcall. For example, the following script leaks about 5M of memory on Windows: require "wx" local ctrl = wx.wxTextCtrl() for _ = 1, 1 do pcall(function() return ctrl.foo end) end

Re: [wxlua-users] Problem compiling wxlua svn 247

2015-05-17 Thread Paul K
Hi Philipp , wxlbind.cpp:831:51: error: ‘luaL_register’ was not declared in this scope luaL_register(L, wx2lua(m_nameSpace), wxlualib); You probably also need -DLUA_COMPAT_MODULE, as luaL_register is not part of Lua 5.2 if the compatibility mode is not turned on. Paul.

Re: [wxlua-users] wxString::ToAscii

2015-03-01 Thread Paul K
Hi Victor, editor:AddText(wx.wxString(_text):ToUTF8()) only show caracters from 1 to 127 (fails with i=0,255) With Notepad plus I can convert it (i=0,255) to UTF save to a file and if If you are trying to convert to/from UTF8, you may want to check this discussion

Re: [wxlua-users] Add methods for wxwidgets 3.x (was: How to provide wxApp::MacNewFile, wxApp::MacOpenFiles, and wxApp:MacReopenApp methods?)

2015-02-21 Thread Paul K
at 11:01 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 and don't see this in any of the examples. Can

[wxlua-users] Add RegisterHotKey and UnregisterHotKey

2015-01-27 Thread Paul K
Hi John, Could you enable RegisterHotKey and UnregisterHotKey method in wxwindow? Your comment says only under WinCE, but it's not correct, as it's available in Windows and should also be available on OSX with this fix: http://trac.wxwidgets.org/ticket/12354. Thank you. Paul.

Re: [wxlua-users] Installing wxWidgets OSX 10.9.5 wxWidgets 3.0.2 wxLua 2.8.12.3

2015-01-12 Thread Paul K
Hi Roy, I am about to install wxWidgets in preparation for wxLua, and looking for any advice or 'gotcha's' before starting the process. I use my own scripts to get wxwidgets code, run configure and then call make. I have been doing this for several years with different versions and the issues

Re: [wxlua-users] build against luajit

2014-10-03 Thread Paul K
Victor, I know I can build against wxlua provided lua5.1 and then use module from luajit but I got a crash doing that and that is why I try to build against luajit I only build against lua5.1, but only use LuaJIT and haven't seen any issues on Windows/OSX/Linux during the last 1.5 years I

Re: [wxlua-users] build against luajit

2014-10-03 Thread Paul K
Hi Victor, I have tried build-macosx.sh from ZeroBrane (luarocks dont have wxlua, luaDist not woking for me, so I liked to see that) first ./build-macosx.sh lua jit then ./build-macosx.sh wxlua and getting the same error about not finding _luaopen_bit32 forgot to say that in the middle

[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

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

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] 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] 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] 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] 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] 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 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] 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] 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

[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

[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

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

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: 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] 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

[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] 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] 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

[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

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

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] 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] 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.

[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] 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

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] 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] 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] 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

[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] 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

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

[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

[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

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

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

[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

[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).

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] 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

[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

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

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

[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] 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

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] 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] 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

[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] 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

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] 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

[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

  1   2   >