SourceForge logo
SourceForge logo
Menu

wxlua-users — wxLua list for users and developers

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
S M T W T F S






1
(2)
2
3
4
5
6
(1)
7
(1)
8
9
10
11
12
13
14
15
16
17
18
19
20
(1)
21
(1)
22
23
24
25
26
27
(1)
28
29
30
31





Showing 7 results of 7

From: David H. <dav...@gm...> - 2012年12月27日 17:10:01
John Labenski <jlabenski@...> writes:
> 
> 
> It sounds like your wxWidgets build is incomplete for the media control. Did 
you build it yourself? You'll need to rebuild it, but take note of the warnings 
during the configure stage and install the devel libaries for gstreamer until 
configure says that nothing is missing. You may need libcairo for wxgcdc. 
> 
> The wxlua app should build is wxluafreeze built. Running $wxluafreeze 
editor.wx.lua is the same as running wxlua. 
> Again, I am w/o a computer or time for this week...
> John
> On Dec 27, 2011 5:23 AM, "Milind Gupta" <milind.gupta-
Re5...@pu...> wrote:
> Ok,    Was finally able to run wxlua applications. They seem to be running 
but the media.wx.lua does not run. Gives the error:
> 
> lua: media.wx.lua:131: attempt to call field 'wxMediaCtrl' (a nil value)
> 
> stack traceback:
> 
> 	media.wx.lua:131: in function 'main'
> 
> 	media.wx.lua:305: in main chunk
> 
> 	[C]: ?
> 
> 
> Don't know why that is the case. Also don't have the wxlua executable 
anywhere. I only see wxluacan and wxluafreeze. I did skip the wxstedit 
compilation, maybe that prevented wxlua creation? Trying wxstedit compilation 
now but it just won't compile. First there were include files it could not find 
now I get this error on running make:
> 
> 
> 
> g++ -o ../samples/stedit/wxstedit wxstedit_wxstedit.o -L../lib -L../lib  -
lwxcode_gtk2u_stedit-2.8 -L/usr/local/lib -pthread  -lwx_gtk2u_stc-2.8 -
lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu-2.8 
> 
> /usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_stc-2.8.so: 
undefined reference to `wxGCDC::wxGCDC(wxWindowDC const&) <at> WXU_2.8'
> 
> /usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_stc-2.8.so: 
undefined reference to `wxGCDC::SetPen(wxPen const&) <at> WXU_2.8'
> /usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_stc-2.8.so: 
undefined reference to `wxGCDC::~wxGCDC() <at> WXU_2.8'
> /usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_stc-2.8.so: 
undefined reference to `wxGCDC::SetBrush(wxBrush const&) <at> WXU_2.8'
> 
> collect2: ld returned 1 exit status
> make: *** [../samples/stedit/wxstedit] Error 1
> 
> 
> 
> Any tips on how to get wxlua IDE? Thats the main thing I want to get.
> 
> 
> 
> 
> Thanks,
> Milind
> 
> On Mon, Dec 26, 2011 at 11:01 AM, Milind Gupta <milind.gupta-
Re5...@pu...> wrote:
> Hi John,
>         Thank you very much for your reply.t worked after that and so 
did make install. But now when I try the example on the wxLua website:
> 
> 
> require("wx")
> frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, "wxLua Minimal Demo",
>          wx.wxDefaultPosition, wx.wxSize(450, 450),
>          wx.wxDEFAULT_FRAME_STYLE)
> 
> 
> 
> -- create a simple file menu
> local fileMenu = wx.wxMenu()
> fileMenu:Append(wx.wxID_EXIT, "E&xit", "Quit the program")
> -- create a simple help menu
> 
> 
> local helpMenu = wx.wxMenu()
> helpMenu:Append(wx.wxID_ABOUT, "&About",
>         "About the wxLua Minimal Application")
> 
> -- create a menu bar and append the file and help menus
> 
> 
> local menuBar = wx.wxMenuBar()
> menuBar:Append(fileMenu, "&File")
> menuBar:Append(helpMenu, "&Help")
> -- attach the menu bar into the frame
> frame:SetMenuBar(menuBar)
> 
> 
> 
> -- create a simple status bar
> frame:CreateStatusBar(1)
> frame:SetStatusText("Welcome to wxLua.")
> 
> -- connect the selection event of the exit menu item to an
> 
> 
> -- event handler that closes the window
> frame:Connect(wx.wxID_EXIT, wx.wxEVT_COMMAND_MENU_SELECTED,
>        function (event) frame:Close(true) end )
> -- connect the selection event of the about menu item
> 
> 
> frame:Connect(wx.wxID_ABOUT, wx.wxEVT_COMMAND_MENU_SELECTED,
>     function (event)
>       wx.wxMessageBox('This is the "About" dialog of the Minimal wxLua 
sample.',
> 
> 
>               "About wxLua",
>               wx.wxOK + wx.wxICON_INFORMATION,
>               frame)
>     end )
> 
> 
> 
> 
It's been about 15 years since I've done anything in C, never touched C++ - but 
I think I figured out the original issue.
----
 wxImageHistogram::iterator * self = (wxImageHistogram::iterator 
*)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram_iterator);
 // call op_inc
 wxImageHistogram::iterator* returns = &((*self)++);
 // push the result datatype
 wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageHistogram_iterator);
----
If I gather this correctly, you're trying to post increment that iterator, if 
this were a normal pointer it would work -
But I'm guessing the iterator type has an operator overload for the ++ operator, 
ultimately calling a function, so (*self)++ is just a function call, the result 
of which is being casted to an pointer.
the compiler is complaining that it has to "throw away" the intermediate value, 
to give you a pointer, and is refusing to do so.
The fix....
----
 wxImageHistogram::iterator * self = (wxImageHistogram::iterator 
*)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram_iterator);
 // call op_inc
 wxImageHistogram::iterator returns = (*self)++;
 // push the result datatype
 wxluaT_pushuserdatatype(L, &returns, wxluatype_wxImageHistogram_iterator);
----
grab the actual result from the iterator override, and then cast as a pointer 
for the "lua_push"
phew.... I don't really miss this stuff at all ;)
Here's hoping this is correct!
From: Eero P. <epa...@gm...> - 2012年12月21日 20:33:34
On Fri, Dec 7, 2012 at 7:13 AM, John Labenski <jla...@gm...> wrote:
> Use the delete() function to clean it up or better yet, try to reuse it if
> possible.
>
Sorry for a very long delay (I was buried under work...)
I guess I might be using an old version of wxLua, but I cannot use
delete on the menu?
I get an error like
wxLua: Unable to call wxuserdata:delete() on object!
Function called 'delete(userdata)'
01. wxMenu::delete(wxMenu(self))
(the above was written in I hope I did not make a typo during it)
The above happened when I tried menu:delete()
menu:Delete is something which deletes parts from a menu, so it does
not really help.
I managed to improve my situation a lot by making parts of my menu
structure reusable, it does not get rid of the leak completely, but it
decreases it by an order of magnitude.
I will be doing wxLua update, when I have some more time.
 Eero
From: AZ <red...@gm...> - 2012年12月20日 23:05:36
I tried to build wxlua against 2.9.5 SVN trunk but it failed: is it 2.9 
support a work in progress?
Build error:
redtide@heimdall:~/Dev/wxlua/trunk/wxLua/buildgtkd$ make
[ 12%] Built target wxStEditLib
[ 13%] Built target wxStEdit
[ 30%] Built target LuaLib
[ 30%] Built target lua
[ 32%] Built target luac
[ 37%] Built target wxLuaLib
[ 38%] Building CXX object 
modules/wxbind/CMakeFiles/wxLuaBindLib.dir/src/wxadv_bind.cpp.o
/home/redtide/Dev/wxlua/trunk/wxLua/modules/wxbind/src/wxadv_bind.cpp: 
In function ‘int wxLua_wxGridCellEditor_PaintBackground(lua_State*)’:
/home/redtide/Dev/wxlua/trunk/wxLua/modules/wxbind/src/wxadv_bind.cpp:8204:42: 
error: no matching function for call to 
‘wxGridCellEditor::PaintBackground(const wxRect&, wxGridCellAttr*&)’
/home/redtide/Dev/wxlua/trunk/wxLua/modules/wxbind/src/wxadv_bind.cpp:8204:42: 
note: candidate is:
/home/redtide/Dev/Git/wxWidgets/include/wx/generic/grid.h:216:18: note: 
virtual void wxGridCellEditor::PaintBackground(wxDC&, const wxRect&, 
const wxGridCellAttr&)
/home/redtide/Dev/Git/wxWidgets/include/wx/generic/grid.h:216:18: note: 
candidate expects 3 arguments, 2 provided
/home/redtide/Dev/wxlua/trunk/wxLua/modules/wxbind/src/wxadv_bind.cpp: 
At global scope:
/home/redtide/Dev/wxlua/trunk/wxLua/modules/wxbind/src/wxadv_bind.cpp:16385:20: 
warning: ‘wxluaclassname_wxWave’ defined but not used [-Wunused-variable]
/home/redtide/Dev/wxlua/trunk/wxLua/modules/wxbind/src/wxadv_bind.cpp:16488:20: 
warning: ‘wxluabaseclassnames_wxWave’ defined but not used 
[-Wunused-variable]
/home/redtide/Dev/wxlua/trunk/wxLua/modules/wxbind/src/wxadv_bind.cpp:16489:24: 
warning: ‘wxluabaseclassbinds_wxWave’ defined but not used 
[-Wunused-variable]
make[2]: *** 
[modules/wxbind/CMakeFiles/wxLuaBindLib.dir/src/wxadv_bind.cpp.o] Errore 1
make[1]: *** [modules/wxbind/CMakeFiles/wxLuaBindLib.dir/all] Errore 2
make: *** [all] Errore 2
redtide@heimdall:~/Dev/wxlua/trunk/wxLua/buildgtkd$
Regards,
Andrea
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

Showing 7 results of 7

Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /