You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(60) |
Jul
(35) |
Aug
(32) |
Sep
(5) |
Oct
(5) |
Nov
(58) |
Dec
(34) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(114) |
Feb
(184) |
Mar
(153) |
Apr
(90) |
May
(153) |
Jun
(59) |
Jul
(24) |
Aug
(43) |
Sep
(17) |
Oct
(34) |
Nov
(11) |
Dec
(204) |
2007 |
Jan
(84) |
Feb
(119) |
Mar
(38) |
Apr
(28) |
May
(52) |
Jun
(105) |
Jul
(64) |
Aug
(67) |
Sep
(14) |
Oct
(3) |
Nov
(28) |
Dec
(55) |
2008 |
Jan
(228) |
Feb
(55) |
Mar
(30) |
Apr
(30) |
May
(15) |
Jun
(20) |
Jul
(12) |
Aug
(3) |
Sep
(13) |
Oct
(54) |
Nov
(35) |
Dec
(35) |
2009 |
Jan
(19) |
Feb
(20) |
Mar
(34) |
Apr
(4) |
May
(60) |
Jun
(25) |
Jul
(16) |
Aug
(51) |
Sep
(19) |
Oct
(62) |
Nov
(21) |
Dec
(12) |
2010 |
Jan
(1) |
Feb
|
Mar
(4) |
Apr
(12) |
May
(23) |
Jun
(13) |
Jul
(1) |
Aug
(40) |
Sep
(18) |
Oct
(21) |
Nov
(26) |
Dec
(34) |
2011 |
Jan
(17) |
Feb
(23) |
Mar
(1) |
Apr
(10) |
May
(1) |
Jun
(5) |
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(43) |
2012 |
Jan
(5) |
Feb
(19) |
Mar
(6) |
Apr
(24) |
May
(39) |
Jun
(83) |
Jul
(29) |
Aug
(36) |
Sep
(64) |
Oct
(55) |
Nov
(12) |
Dec
(7) |
2013 |
Jan
(17) |
Feb
(10) |
Mar
(37) |
Apr
(27) |
May
(13) |
Jun
(9) |
Jul
(7) |
Aug
(61) |
Sep
(23) |
Oct
(23) |
Nov
(30) |
Dec
(16) |
2014 |
Jan
(23) |
Feb
(13) |
Mar
(9) |
Apr
(17) |
May
(2) |
Jun
(11) |
Jul
(2) |
Aug
|
Sep
(9) |
Oct
(24) |
Nov
(2) |
Dec
(14) |
2015 |
Jan
(6) |
Feb
(4) |
Mar
(17) |
Apr
|
May
(7) |
Jun
(3) |
Jul
|
Aug
|
Sep
(2) |
Oct
(21) |
Nov
(6) |
Dec
(2) |
2016 |
Jan
(4) |
Feb
(2) |
Mar
(7) |
Apr
(3) |
May
(11) |
Jun
(6) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(4) |
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(8) |
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: John L. <jla...@gm...> - 2012-12-07 05:13:38
|
On Dec 6, 2012 7:03 AM, "Eero Pajarre" <epa...@gm...> wrote: > > My wxLua program seems to be leaking resources, and the leak seems to > be caused by popup menus. I have very context sensitive menus which I > pop up, so I am creating a new menu on every click of right button of > the mouse. > > Google search found some hints for wxPython where it was recommended > to Destroy() the menu after it had been used. I had no success on this > with wxLua as Destroy seems to be (only) bound to the function > destroying menu elements, not for Destroying complete menu. > Use the delete() function to clean it up or better yet, try to reuse it if possible. When I have some time I will look into why it is not automatically handled. Regards, John |
From: Eero P. <epa...@gm...> - 2012-12-06 15:03:26
|
My wxLua program seems to be leaking resources, and the leak seems to be caused by popup menus. I have very context sensitive menus which I pop up, so I am creating a new menu on every click of right button of the mouse. Google search found some hints for wxPython where it was recommended to Destroy() the menu after it had been used. I had no success on this with wxLua as Destroy seems to be (only) bound to the function destroying menu elements, not for Destroying complete menu. Any hints would be appreciated, for example information if this has been fixed in the latest wxLua version, or if there is a better way for doing what I am doing. Eero |
From: SourceForge.net <no...@so...> - 2012-12-01 08:28:12
|
Feature Requests item #3591609, was opened at 2012-12-01 00:28 Message generated for change (Tracker Item Submitted) made by sergo2002 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745327&aid=3591609&group_id=140042 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Private: No Submitted By: MaxWell (sergo2002) Assigned to: Nobody/Anonymous (nobody) Summary: Add wxTreeListCtrl and wxDataViewCtrl bindings Initial Comment: Hi! Is there possibility to add this bindings in great wxlua project? Thanx. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745327&aid=3591609&group_id=140042 |
From: SourceForge.net <no...@so...> - 2012-12-01 07:28:02
|
Feature Requests item #3591606, was opened at 2012-11-30 23:28 Message generated for change (Tracker Item Submitted) made by sergo2002 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745327&aid=3591606&group_id=140042 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Private: No Submitted By: MaxWell (sergo2002) Assigned to: Nobody/Anonymous (nobody) Summary: Add wxTreeListCtrl and wxDataViewCtrl bindings Initial Comment: Hi! Is there possibility to add this bindings in great wxlua project? Thanx. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745327&aid=3591606&group_id=140042 |
From: Paul K <pau...@ya...> - 2012-11-15 22:02:40
|
Hi John, > "If you choose to use the container to do the styling you can use the > SCI_SETLEXER command to select SCLEX_CONTAINER, in which case the > container is sent a SCN_STYLENEEDED notification each time text needs > styling for display." You are absolutely right. In fact, I was reading this fragment and somehow missed that STYLENEEDED is going to be *only* called when the lexer is set to SCLEX_CONTAINER. > I think the idea is that you will have to style everything all the > time. Though, I don't remember having tried it myself. Ok, related question then. Is it possible to use 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 <jla...@gm...> wrote: > On Thu, Nov 15, 2012 at 3:56 PM, Paul K <pau...@ya...> wrote: >> Hi John, >> >> I've been doing custom styling and realized that the work that I've >> done is mostly in UPDATEUI handlers, whereas it should probably be in >> STYLENEEDED handlers. I looked at your editor and see that you also >> only use UPDATEUI, but not STYLENEEDED. > > The Scintilla docs are pretty complete and map reasonably well to the > wxWidgets wrapper. > http://www.scintilla.org/ScintillaDoc.html > > "If you choose to use the container to do the styling you can use the > SCI_SETLEXER command to select SCLEX_CONTAINER, in which case the > container is sent a SCN_STYLENEEDED notification each time text needs > styling for display." > > I think the idea is that you will have to style everything all the > time. Though, I don't remember having tried it myself. > > Regards, > John > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users |
From: John L. <jla...@gm...> - 2012-11-15 21:13:00
|
On Thu, Nov 15, 2012 at 3:56 PM, Paul K <pau...@ya...> wrote: > Hi John, > > I've been doing custom styling and realized that the work that I've > done is mostly in UPDATEUI handlers, whereas it should probably be in > STYLENEEDED handlers. I looked at your editor and see that you also > only use UPDATEUI, but not STYLENEEDED. The Scintilla docs are pretty complete and map reasonably well to the wxWidgets wrapper. http://www.scintilla.org/ScintillaDoc.html "If you choose to use the container to do the styling you can use the SCI_SETLEXER command to select SCLEX_CONTAINER, in which case the container is sent a SCN_STYLENEEDED notification each time text needs styling for display." I think the idea is that you will have to style everything all the time. Though, I don't remember having tried it myself. Regards, John |
From: Paul K <pau...@ya...> - 2012-11-15 20:56:50
|
Hi John, I've been doing custom styling and realized that the work that I've done is mostly in UPDATEUI handlers, whereas it should probably be in STYLENEEDED handlers. I looked at your editor and see that you also only use UPDATEUI, but not STYLENEEDED. I did some tests and STYLENEEDED didn't seem to be called at all (tested on Windows Vista with wxlua 2.8.12.2). You can easily see it yourself by adding the following code to editor.wx.lua around line 587: editor:Connect(wxstc.wxEVT_STC_STYLENEEDED, function (event) DisplayOutput("StyleNeeded\n") end) Just in case I added debug output to UPDATEUI handler and it's called as expected. I thought maybe the constant is mistyped, but it's the same one present in the DLL file and it returns 10281 as the value. Is there some trick I need to involve to get EVT_STC_STYLENEEDED generated? Is there a working example where it's used? Anyone else is using this event? Paul. |
From: Victor B. <so...@te...> - 2012-11-15 11:43:38
|
Hello, This is what I get: >lua.exe Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio > print(1.234, string.format("%f", 2.345), os.setlocale()) 1.234 2.345000 C > require("wx") > print(1.234, string.format("%f", 2.345), os.setlocale()) 1,234 2,345000 Spanish_Spain.1252 > print(os.setlocale("", "all")) Spanish_Spain.1252 > print(1.234, string.format("%f", 2.345), os.setlocale()) 1,234 2,345000 Spanish_Spain.1252 > manual from lua.51 says: If locale is the empty string, the current locale is set to an implementation-defined native locale. May be Spanish locale was hard coded in my lua.exe compilation and wxlua calls os.setlocale("", "all")? I have used os.setlocale("C") in my lua script after require"wx" and everything works as I expected (but of course wx.wxMessageBox prints 1.234 which is not anoying for me). Would be good idea to mention in the FAQ what is happenig with the locale. Best Regards |
From: John L. <jla...@gm...> - 2012-11-14 23:04:25
|
On Wed, Nov 14, 2012 at 4:02 AM, Victor Bombi <so...@te...> wrote: > Hello, > >> wxLua does not change the locale, but wxWidgets might to make the UI >> numeric display appropriate for users. > > That`s true: > with print(os.locale()) before and after the require"wx" I get > > C > Spanish_Spain.1252 > >> What OS are you on? If you're in Linux you can apply the patch below >> and recompile the wxLua module lib. Please let me know if it works for >> you and I will apply it to svn. > > My OS is windows. Perhaps the solution would be just calling os.locale("C") > after require"wx"? I'm fairly new to this stuff, but curious... It looks like you can change it temporarily for a given prompt. http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fae19495_.htm Open a new command (DOS) prompt: # This is what I use normally c:\>chcp Active code page: 437 # Change it to this c:\>chcp 1252 Active code page: 1252 # Run lua and see what happens. C:\>lua.exe Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio > print(1.234, string.format("%f", 2.345), os.setlocale()) 1.234 2.345000 C > require("wx") > print(1.234, string.format("%f", 2.345), os.setlocale()) 1.234 2.345000 C > print(os.setlocale("", "all")) English_United States.1252 > print(1.234, string.format("%f", 2.345), os.setlocale()) 1.234 2.345000 English_United States.1252 On a whim, I tried this... > print(os.setlocale("Spanish_Spain.1252", "all")) Spanish_Spain.1252 > print(1.234, string.format("%f", 2.345), os.setlocale()) 1,234 2,345000 Spanish_Spain.1252 > wx.wxMessageBox(string.format("%f", 1.234), string.format("%f", 2.345), wx.wxOK) Displays a message box using 1,234 and 2,345... Can you try the above commands and let me know what they print for you? ========================= The code I posted is to ensure that the Lua parser uses the C locale (1.0 not 1,0), but using require("wx") means that Lua has already parsed the Lua code so that doesn't matter. I imagine the right thing to do would be to save the locale before initializing wxWidgets in wx.dll then if changed set to back to what it was. I don't know if this is a suitable solution though. If the locale was forced to 'C' or back to what it was then Lua might work "normally", but the GUI would look wrong for some people. I would imagine that wxWidgets changes it to make the GUI right and that's probably the right thing to do. Hopefully you can force it back by calling Lua's os.setlocale("C", "all") and if it works I'll put it in the FAQ. Regards, John |
From: Victor B. <so...@te...> - 2012-11-14 09:02:45
|
Hello, > wxLua does not change the locale, but wxWidgets might to make the UI > numeric display appropriate for users. That`s true: with print(os.locale()) before and after the require"wx" I get C Spanish_Spain.1252 > What OS are you on? If you're in Linux you can apply the patch below > and recompile the wxLua module lib. Please let me know if it works for > you and I will apply it to svn. My OS is windows. Perhaps the solution would be just calling os.locale("C") after require"wx"? Best Regards Victor Bombi |
From: John L. <jla...@gm...> - 2012-11-14 07:20:38
|
On Tue, Nov 13, 2012 at 8:02 AM, Konstantin <lal...@gm...> wrote: > I've success built wxLua-r156 (patched) with wxWidgets 2.9.4 on Linux and > Windows! > > Can u add this binding please? Yep, thanks for the patch. > Also it will be cool to see wxScrolledCanvas and base classes like > wxNavigationEnabled<wxWindow> and wxControlContainerBase > to use Focus functions in 2.9! Use wxScrolledWindow, wxNavigationEnabled has no public functions in the docs and since wxPanel is derived from it you already have it, the wxEvtHandler class has the Get/SetClientData/Object() functions so all classes including wxWindows have those functions too. The wxLua bindings are loose interpretations of the actual wxWidgets C++ headers to allow it to work for 2.8 and 2.9 without having to really hack it up too badly. Regards, John |
From: John L. <jla...@gm...> - 2012-11-14 06:58:14
|
On Mon, Nov 12, 2012 at 2:14 PM, Victor Bombi <so...@te...> wrote: > Hello, > > this script: > > print(0.4) > require("wx") > print(0.4) > > does this output: > > 0.4 > 0,4 > > For me is very bad because I cant serialize floats. Is there any reason for > changing tostring method for numbers or could be reverted? wxLua does not change the locale, but wxWidgets might to make the UI numeric display appropriate for users. What OS are you on? If you're in Linux you can apply the patch below and recompile the wxLua module lib. Please let me know if it works for you and I will apply it to svn. Regards, John Index: wxLua/modules/luamodule/luamodule.cpp =================================================================== --- C:/NOSCAN/wx/svnroot_wx/wx/wxLua/wxLua-trunk/trunk/wxLua/modules/luamodule/luamodule.cpp (revision 156) +++ C:/NOSCAN/wx/svnroot_wx/wx/wxLua/wxLua-trunk/trunk/wxLua/modules/luamodule/luamodule.cpp (working copy) @@ -192,6 +192,17 @@ return 0; } + #ifdef __WXGTK__ + // this call is very important since otherwise scripts using the decimal + // point '.' could not work with those locales which use a different symbol + // (e.g. the comma) for the decimal point... + // It doesn't work to put os.setlocale('c', 'numeric') in the Lua file that + // you want to use decimal points in. That's because the file has been lexed + // and compiler before the locale has changed, so the lexer - the part that + // recognises numbers - will use the old locale. + setlocale(LC_NUMERIC, "C"); + #endif + wxTheApp->SetExitOnFrameDelete(true); wxInitAllImageHandlers(); |
From: Victor B. <so...@te...> - 2012-11-12 19:14:48
|
Hello, this script: print(0.4) require("wx") print(0.4) does this output: 0.4 0,4 For me is very bad because I cant serialize floats. Is there any reason for changing tostring method for numbers or could be reverted? Thank you Victor Bombi |
From: John L. <jla...@gm...> - 2012-11-08 03:31:10
|
On Nov 7, 2012 9:59 AM, "Bartłomiej Piotrowski" <b...@bp...> wrote: > > Hello! > > Do I have bigger vision problems than I thought or there is no sources > of 2.8.12.2 release on SourceForge? If the latter is correct, where can > I get them (apart from Git/Subversion)? I'm afraid I didn't make them as they are not exactly official releases, though they are stable. There are instructions on getting the svn in the install.html document. The svn viewer even has a link to download a tarball, though I haven't tried it myself. Regards, John |
From: Bartłomiej P. <b...@bp...> - 2012-11-07 17:58:58
|
Hello! Do I have bigger vision problems than I thought or there is no sources of 2.8.12.2 release on SourceForge? If the latter is correct, where can I get them (apart from Git/Subversion)? -- Bartłomiej Piotrowski http://bpiotrowski.pl/ |
From: Paul K <pau...@ya...> - 2012-10-30 16:49:39
|
Hi Alex, > Any chance of a port to Raspberry Pi ( http://www.raspberrypi.org/faqs )? I'm not sure what's involved in compiling wxlua/wxwidgets for Raspbian, but I can take a look. Does anyone on this list have experience compiling wxlua for Raspbian “wheezy” (http://www.raspberrypi.org/downloads)? Paul. On Tue, Oct 30, 2012 at 4:26 AM, Alec Ross <al...@ar...> wrote: > In message > <CAD...@ma...>, > Paul K <pau...@ya...> writes >>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/. > > ... > > Hi Paul, thanks for this. > > Any chance of a port to Raspberry Pi ( http://www.raspberrypi.org/faqs ) > ? Specifically to any of Debian-based distros for it, particularly > Raspbian? ( see: http://www.raspberrypi.org/downloads , and > http://www.raspberrypi.org/phpBB3/viewforum.php?f=18&sid=f08f36e498f9b716 > c416a081004f3094 ) > > Tks, > > Alec > -- > Alec Ross > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users |
From: Alec R. <al...@ar...> - 2012-10-30 11:51:20
|
In message <CAD...@ma...>, Paul K <pau...@ya...> writes >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/. ... Hi Paul, thanks for this. Any chance of a port to Raspberry Pi ( http://www.raspberrypi.org/faqs ) ? Specifically to any of Debian-based distros for it, particularly Raspbian? ( see: http://www.raspberrypi.org/downloads , and http://www.raspberrypi.org/phpBB3/viewforum.php?f=18&sid=f08f36e498f9b716 c416a081004f3094 ) Tks, Alec -- Alec Ross |
From: Paul K <pau...@ya...> - 2012-10-29 21:50:52
|
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 most recent version implements a large number of features with several most important ones being: - Added Linux support (tested in 32bit and 64bit configuration on Ubuntu and Mint distributions). - Added Gideros debugging, auto-complete, and live coding. - Added Moai auto-complete. - Added syntax aware indentation. - Added re/storing open files and interpreter when switching project folders. Full details are in the changelog: https://github.com/pkulchenko/ZeroBraneStudio/blob/master/CHANGELOG.md. Some users also tested and reported that ZeroBrane Studio and MobDebug work with clients running Lua 5.2, which may be of interest; you only need to use David's compat_env (https://raw.github.com/davidm/lua-compat-env/master/lua/compat_env.lua) to get the debugger working. This way you can run ZeroBrane Studio (using Lua 5.1) and debug applications that use Lua 5.2 interpreter. Thank you all for your continuing support in the development of this IDE! Paul. |
From: John L. <jla...@gm...> - 2012-10-27 06:04:45
|
I have made some changes to the wxLua binding generator so that the *.i interface files are now more C++ like. More work needs to be done to remove the remaining special constructs so that a nearly unmodified C++ header may be used as is, but this is a start. This affects only people who maintain their own interface files for their own libraries. I apologize for the inconvenience, but this should pay off in simplifying maintenance for everybody in the future. No functionality of wxLua should have been affected. >From the 2.8.12.3 section of the changelog; here is are the items that will need to be updated in your interface files : * CONVERT *.i BINDINGS TO BE VALID(ish) C++ CODE! If you have written you own, you will have to make these changes. - Find/Replace "%if" -> "#if" - Find/Replace "%endif" -> "#endif" - Find/Replace "%include" -> "#include" - Find/Replace "%define" -> "#define" (still only for numbers) - Find/Replace "%define_string" -> "#define_string" - Find/Replace "%define_wxstring" -> "#define_wxstring" - Find/Replace "%define_object" -> "#define_object" - Find/Replace "%define_pointer" -> "#define_pointer" - Find/Replace "%define_event" -> "%wxEventType" (not always #defines, special to wx) - Find/Replace "%public" -> "public" (not currently used) - Find/Replace "%protected" -> "protected" (not currently used) - Find/Replace "%private" -> "private" (not currently used) - Find/Replace "%typedef" -> "typedef" - Change %class ClassName ... %endclass to class ClassName [: public BaseClassName [, public BaseClassName2]] { ... // Note that {} braces must be on separate lines. }; - Change %struct StructName ... %endstruct as per class change. - Change %enum [EnumName] ... %endenum to enum EnumName { ... // Note that {} braces must be on separate lines. }; Regards, John |
From: John L. <jla...@gm...> - 2012-10-20 03:50:36
|
On Fri, Oct 19, 2012 at 6:27 AM, Konstantin <lal...@gm...> wrote: > On Linux compilation r151 success. > > The last thing is building in Windows (same revision 151): > > CMake generator is NMake Makefiles. > Compilation in the Visual Studio 2010 console. > > I have errors on RS.exe (Resource Compiler) executing > It do not know anything about definitions like /W3 or W4 or /MP I unfortunately don't have VC2010, I think I understand the problem though, but it would help if you could post the error messages exactly. > When i commented out Lines 340 and 356 in CMakewxAppLib.cmake (Section > "Special definitions for building") > the wxLua project was built successfully! I changed using add_definition() to setting the CMAKE_CXX_FLAGS. Hopefully it should work now. Regards, John |
From: Konstantin <lal...@gm...> - 2012-10-19 10:27:19
|
On Linux compilation r151 success. The last thing is building in Windows (same revision 151): CMake generator is NMake Makefiles. Compilation in the Visual Studio 2010 console. I have errors on RS.exe (Resource Compiler) executing It do not know anything about definitions like /W3 or W4 or /MP When i commented out Lines *340* and *356* in CMakewxAppLib.cmake (Section "Special definitions for building") the wxLua project was built successfully! Regards, KOS. 2012/10/19 John Labenski <jla...@gm...> > On Thu, Oct 18, 2012 at 5:06 AM, Konstantin <lal...@gm...> wrote: > > Now (at rev. 150) I have compilation errors: > > > > 1) /tmp/wxLua-r150/modules/wxstedit/src/stefindr.cpp:122:56: error: > passing > > ‘const wxSTEditorFindReplaceData’ as ‘this’ argument of ‘const wxString& > > wxFindReplaceData::GetFindString()’ discards qualifiers > > > > 2) /tmp/wxLua-r150/apps/wxluaedit/wxluaedit.cpp:251:53: error: > > ‘STE_TOOLBAR_EDIT_FIND_CTRL’ was not declared in this scope > > > > If Line 130 in the file > > /tmp/wxLua-r150/modules/wxstedit/include/wx/stedit/stefindr.h changed to > > #if wxCHECK_VERSION(2,9,0) > > it fixes first error.) > > Both fixed in SVN, thanks for reporting. > > Regards, > John > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users > -- -- С уважением, Матвеев Константин Руководитель проекта +7 (917) 554 44 64 kon...@el... EligoVision. Интерактивные Технологии http://www.eligovision.ru |
From: Paul K <pau...@ya...> - 2012-10-19 05:32:27
|
Hi John, > A wxIdleEvent event is sent after every event or batch of events so > you are guaranteed to get it. You could be "tricked" that a user was > active with your app if a different window is dragged on top and a > paint event sent, but does that matter? I saw that code, but he is using GetLastInputInfo, which is Windows only and I need something that works on Windows, OSX, and Linux. It is also tracking *user* idle time (across all applications), rather than application idle time (which is what I am after). I also couldn't get wxIdleEvent to work as I'd expect, because it's always generated on Windows (I get a stream of IDLE events), but only after some other events on OSX and Linux (as documented). Also, I registered EVT_KILL_FOCUS handler on the main frame in the application, but it's not triggered when the focus is changed to another application. Right now I simply set a timer for X/2 seconds (where X is the period I want to track) and track document modification events that happen during that time. I don't get the exact interval I need, but it's not critical; I'm never more than X/2 seconds off. I was looking for something more centralized and simpler than what I have now, but couldn't find it. Paul. On Thu, Oct 18, 2012 at 9:43 PM, John Labenski <jla...@gm...> wrote: > On Thu, Oct 18, 2012 at 11:14 PM, Paul K <pau...@ya...> 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 time in the application when a user >> doesn't do any activity for X seconds. Any activity is defined as >> EVT_MOTION and EVT_KEY_DOWN events, but I'll settle for EVT_KEY_DOWN >> if it's difficult to track both. I don't want to keep adding my >> handlers to all the components I have and am looking for as few places >> to modify as possible. > > How about something like this? > http://utmostlogic.wordpress.com/tag/wxwidgets/ > > A wxIdleEvent event is sent after every event or batch of events so > you are guaranteed to get it. You could be "tricked" that a user was > active with your app if a different window is dragged on top and a > paint event sent, but does that matter? > > Regards, > John > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users |
From: John L. <jla...@gm...> - 2012-10-19 04:43:19
|
On Thu, Oct 18, 2012 at 11:14 PM, Paul K <pau...@ya...> 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 time in the application when a user > doesn't do any activity for X seconds. Any activity is defined as > EVT_MOTION and EVT_KEY_DOWN events, but I'll settle for EVT_KEY_DOWN > if it's difficult to track both. I don't want to keep adding my > handlers to all the components I have and am looking for as few places > to modify as possible. How about something like this? http://utmostlogic.wordpress.com/tag/wxwidgets/ A wxIdleEvent event is sent after every event or batch of events so you are guaranteed to get it. You could be "tricked" that a user was active with your app if a different window is dragged on top and a paint event sent, but does that matter? Regards, John |
From: Paul K <pau...@ya...> - 2012-10-19 03:14:09
|
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 time in the application when a user doesn't do any activity for X seconds. Any activity is defined as EVT_MOTION and EVT_KEY_DOWN events, but I'll settle for EVT_KEY_DOWN if it's difficult to track both. I don't want to keep adding my handlers to all the components I have and am looking for as few places to modify as possible. Paul. On Thu, Oct 18, 2012 at 7:36 PM, John Labenski <jla...@gm...> wrote: > On Thu, Oct 18, 2012 at 1:23 AM, Paul K <pau...@ya...> wrote: >> Hi John, >> >>> You should be able to call Connect() on the window you're interested >>> in getting them from. >>> >>> window:Connect(wx.wxEVT_KEY_DOWN, Lua function) >> >> I'm looking for reducing the number of windows to check as there are >> many that can trigger those events. I tried attaching the handlers to >> the main window, but I don't get the events I need. I think the >> difference is that FilterEvent is called before any of the regular >> handlers are called, but the handler that is attached to the main >> window is called only if the event is propagated up the chain and it >> depends on how that event is handled. > > Key events are not passed to their parents, only wxCommandEvent and > derived classes are. > > If you can you explain what you are trying to do I might be able to help. > > Regards, > John > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users |
From: John L. <jla...@gm...> - 2012-10-19 02:36:23
|
On Thu, Oct 18, 2012 at 1:23 AM, Paul K <pau...@ya...> wrote: > Hi John, > >> You should be able to call Connect() on the window you're interested >> in getting them from. >> >> window:Connect(wx.wxEVT_KEY_DOWN, Lua function) > > I'm looking for reducing the number of windows to check as there are > many that can trigger those events. I tried attaching the handlers to > the main window, but I don't get the events I need. I think the > difference is that FilterEvent is called before any of the regular > handlers are called, but the handler that is attached to the main > window is called only if the event is propagated up the chain and it > depends on how that event is handled. Key events are not passed to their parents, only wxCommandEvent and derived classes are. If you can you explain what you are trying to do I might be able to help. Regards, John |