Re: [wxlua-users] wxMenu:AppendSubMenu
Hello, Is there any special reason for not having wxMenu:AppendSubMenu? It probably didn't exist in previous versions of wxWidgets. Added in SVN now. Regards, John -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxlua on debian jessie
On Sun, Jan 25, 2015 at 12:55 PM, Ulrich Schmidt u.sch...@gmx.de wrote: Hi. I installed Debian on a tiny pc. Caused by the fact jessie has packages for lua, luajit, rockspec and so on, installing a lua environment is a easy and quick task. wxWidgets-3.0.2 are available too. Unzipping wxlua, running cmake and compiling wxlua is easy too. (I wish it would be so easy on windows too.) Anyway there are 2 questions remaining: - The resulting lua module is named liblua.so instead wx.so. What is the idea behind? I renamed libwx.so to wx.so to allow standard cpath to work. CMake prepends 'lib' to the name by default and I see that for the Mingw build I do remove it. I'm not sure why I didn't do the same for Linux. I think the right thing to do would be to actually name the 'wx.so' lib with the Lua and wxWidgets versions and then symlink wx.so to it as most other libs do. - make generates libwx.so + libwxlua_lua51-wx30gtk2u-2.8.12.3.so Why is there this libwxlua_lua51-wx30gtk2u-2.8.12.3.so? Is it possible to compile libwxlua_lua51-wx30gtk2u-2.8.12.3.so into (lib)wx.so? If not, where is a good place to store libwxlua_lua51-wx30gtk2u-2.8.12.3.so? In order to use Lua's 'require' you need to have the lua exe linked to a shared lua.so and the lib you want to 'require' also linked to the same lua.so. If you will 'require' other Lua C libs then these will also need to be built and linked against the same lua.so library. This is why the lua.so lib is not rolled into the wx.so lib and the lua exe linked only to wx.so. In terms of where to put the lua.so lib, you can put it anywhere. Use LD_LIBRARY_PATH or the program chrpath to change the rpath of the lua exe to find it. Hope this helps, John -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxString::ToAscii
On Mon, Mar 2, 2015 at 3:54 AM, Victor Bombi son...@telefonica.net wrote: Where I say UNICODE it should be whatever internal widebyte encoding the system and wxWidgets is using wxWidgets has recently changed so that the = 2.9 version always uses utf8 in the wxString. There's a list of what it accepts in the section wxString http://docs.wxwidgets.org/3.0/classwx_string.html can be created from. http://docs.wxwidgets.org/3.0/classwx_string.html the problem is converting from ANSI to UNICODE wxLua unicode build converts as if the string were UTF8 to UNICODE: return wxString(luastr, wxConvUTF8); it works from code 1 to 127 (ASCii) but fails on 128-255 which are not valid UTF 0 is discarded in lua2wx :if (luastr == NULL) return wxEmptyString; // check for NULL which is a problem for lua strings with embeded ceros What do you plan to do with this wxString? You won't be able to display it in the GUI since the high ASCII chars usually just show up as boxes not as the DOS smiley faces and whatnot. I recommend sanitizing the string for display by replacing the extended ascii and controls chars with '?' for example. You can make an ANSI build of wxWidgets (frowned upon in wx versions = 2.9) and see if that does what you want... Regards, John -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Add RegisterHotKey and UnregisterHotKey
On Tue, Jan 27, 2015 at 7:32 PM, Paul K paulclin...@yahoo.com wrote: 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. Added in SVN, note that it is not available in GTK. Regards, John -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Installing wxWidgets OSX 10.9.5 wxWidgets 3.0.2 wxLua 2.8.12.3
On Sun, Jan 18, 2015 at 5:37 PM, Roy Hinkelman royh...@gmail.com wrote: I am still getting errors after trying new config settings for installing wxWidgets. Any pointers greatly appreciated. I don't have a mac available for testing right now. after make -j4 ../src/osx/webview_webkit.mm:392:30: warning: incompatible pointer types sending 'WebViewUIDelegate *' to parameter of type 'idWKUIDelegate' [-Wincompatible-pointer-types] [m_webView setUIDelegate:uiDelegate]; ^~ ../src/osx/webview_webkit.mm:464:34: warning: 'WKPreferences' may not respond to 'setUsesPageCache:' [[m_webView preferences] setUsesPageCache:NO]; ~~~ ^ ../src/osx/webview_webkit.mm:466:34: warning: 'WKPreferences' may not respond to 'setUsesPageCache:' [[m_webView preferences] setUsesPageCache:YES]; ~~~ ^ ../src/osx/webview_webkit.mm:936:25: error: cannot initialize a variable of type 'WebBackForwardList *' with an rvalue of type 'WKBackForwardList *' WebBackForwardList* history = [m_webView backForwardList]; ^ ~~~ ../src/osx/webview_webkit.mm:954:25: error: cannot initialize a variable of type 'WebBackForwardList *' with an rvalue of type 'WKBackForwardList *' WebBackForwardList* history = [m_webView backForwardList]; You're not alone, it looks like the current trunk SVN has a fix for it if I understand the last comment correctly. http://trac.wxwidgets.org/ticket/16329 Regards, John -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Installing wxWidgets OSX 10.9.5 wxWidgets 3.0.2 wxLua 2.8.12.3
On Sun, Jan 18, 2015 at 6:28 PM, Roy Hinkelman royh...@gmail.com wrote: @Paul: Thanks for the pointer to ZeroBrane. I looked at your IDE, and it looks really interesting. Can you help with some newbie questions? I am looking to build cross-platform Lua based apps I can't help with this particular issue as I use gcc rather than clang, but I do build cross-platform lua apps using wxlua and support Windows, OSX, and various flavors of Linux. But I am not familiar with gcc or clang, and what effect they have with building cross platform apps. Can I not compile to certain platforms with gcc or clang? Cross-platform compiling for different OSes from a single OS is not for the faint of heart as it is usually very complicated. I'm also pretty sure that the Apple provided clang compiler will not cross-compile to MSW or Linux. The easiest way is to simply get a machine for each OS, dual-boot them, or use virtual machines. Note that Apple used to provide GCC as their XCode compiler, but they switched to clang recently and I have not used it. I don't really understand the process here. I am assuming I build my app and compile it to Win, OSX, IOS or Droid. Do I need to have a 'production' build for wxWidgets as part of the process? You need to have wxLua, Lua, and wxWidgets binaries built for each platform you want to run on as they are the code that's actually interacting with the OS. The Lua script code for wxLua simply calls the compiled binary wxWidgets functions that eventually call the system provided functions to create windows, menus, etc. Same for the 'os' Lua module and its functions os.clock() for example. Note that android and ios are experiment in wxWidgets and there is no provision for them in wxLua. Regards, John -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users