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


Showing 23 results of 23

From: John L. <jla...@gm...> - 2013年10月24日 03:32:30
On Wed, Oct 23, 2013 at 1:50 AM, Paul K <pau...@ya...> wrote:
> Hi John/Victor,
>
> I've seen suggested patches (like this one:
> http://www.kirix.com/forums/viewtopic.php?f=15&t=542#p1479), but they
> have never made it into the library. It *may* be possible to reproduce
> the same logic that is used when this is done manually, but
> unfortunately, I don't see a way to get access to wxAuiTabCtrl that is
> needed for this manipulation.
>
>
I don't know why these patches never made it into wxWidgets, but earlier
this year there was more talk about updating wxAui on the wx-dev mailing
list and I think saving the perspective was part of it. I don't know what
came of it though.
John, a side note; it's a shame that there doesn't seem to be a way to
> get wxAuiTabCtrl from wxAuiNotebook. The only way I found was through
>
If this is part of the C++ api I can add it for sure, it is?
> panes = nbmgr:GetAllPanes()
> tabframe = panes:Item(1).window:DynamicCast("wxTabFrame") -- this
> should work, but fails with "Cannot cast a wxLua type 'wxWindow' with
> wxClassInfo 'wxWindow' to a 'wxTabFrame'".
>
>
It looks like wxTabFrame is not exposed though any header file.
> It would be great to have access to FindTab, which returns both the
> tab control and tab index for the page in that control, but it's
> marked as protected:
>
> protected:
> bool FindTab(wxWindow* page, wxAuiTabCtrl** ctrl, int* idx);
>
> What are your thoughts on exposing protected classes in the wxlua API?
> There are two more in that category wxStat and wxLstat that I'd love
> to have in wxlua.
>
>
It is unfortunately not really possible to expose these in a generic way.
wxLua can compile against a system installed copy of wxWidgets and we can't
expect people to be able to change "protected:" to "public:". There really
isn't a viable way to do this in C++ that isn't a complete hack that will
just lead to frustrating people with compilation errors.
A quick google search hints that wxPython has implemented this, how did
they do it?
Regards,
 John
From: Paul K <pau...@ya...> - 2013年10月23日 05:50:19
Hi John/Victor,
I think I tried this method a while ago, but I couldn't make the forth
tab to form a square: if you split it RIGHT, it would take its own
column and if you split it BOTTOM, it would take its own row. It's
possible to position them manually, but I couldn't find a way to do
this programmatically (and there is no SavePerspective in
wxAuiNotebook), so I put it on the back burner.
I've seen suggested patches (like this one:
http://www.kirix.com/forums/viewtopic.php?f=15&t=542#p1479), but they
have never made it into the library. It *may* be possible to reproduce
the same logic that is used when this is done manually, but
unfortunately, I don't see a way to get access to wxAuiTabCtrl that is
needed for this manipulation.
John, a side note; it's a shame that there doesn't seem to be a way to
get wxAuiTabCtrl from wxAuiNotebook. The only way I found was through
capturing TAB events like wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP and
then using event:GetEventObject():DynamicCast("wxAuiTabCtrl"), but
this doesn't work in all other normal cases.
I think I got close by using this sequence:
nbmgr = notebook:GetAuiManager() -- note that wxAuiNotebook has its
own AuiManager that manages its tabs as panes; you can actually
save/restore its perspective this way, but it doesn't work in all
cases.
panes = nbmgr:GetAllPanes()
tabframe = panes:Item(1).window:DynamicCast("wxTabFrame") -- this
should work, but fails with "Cannot cast a wxLua type 'wxWindow' with
wxClassInfo 'wxWindow' to a 'wxTabFrame'".
It would be great to have access to FindTab, which returns both the
tab control and tab index for the page in that control, but it's
marked as protected:
protected:
 bool FindTab(wxWindow* page, wxAuiTabCtrl** ctrl, int* idx);
What are your thoughts on exposing protected classes in the wxlua API?
There are two more in that category wxStat and wxLstat that I'd love
to have in wxlua.
FWIW, you can actually play with this quite easily from Local console
in ZBS; open four tabs and then try:
> notebook = ide.frame.notebook
> notebook:Split(0, wx.wxRIGHT)
> notebook:Split(1, wx.wxBOTTOM)
> notebook:Split(3, wx.wxRIGHT)
You can also get access to AuiManager: mgr = ide.frame.uimgr.
Paul.
From: John L. <jla...@gm...> - 2013年10月23日 04:11:38
On Tue, Oct 22, 2013 at 1:29 AM, Victor Bombi <so...@te...> wrote:
> **
> Sorry, I dont understand!! :-(
> Could you please explain it with code?
>
>
Sorry I don't have time now, but I would try something like this:
-- untested code
notebook:AddPage(page1, "page1")
notebook:AddPage(page2, "page2")
notebook:AddPage(page3, "page3")
notebook:Split(0, wx.wxRIGHT)
-- now split in two, with one tab in left pane and two tabs in right pane
notebook:Split(1, wx.wxBOTTOM)
-- now split in 3, one tab on left pane and right has two panes, top and
bottom
notebook:InsertPage(0, page4, "page4")
-- now have two tabs in left pane
notebook:Split(0, wx.wxBOTTOM)
-- now the left tabs are split vertically giving four panes with one tab in
each pane.
-------------
You might have to experiment with wxTOP vs. wxBOTTOM etc. Again, totally
untested, but I played a little with the aui sample and got pretty close
yesterday.
John.
From: Victor B. <so...@te...> - 2013年10月22日 05:29:17
Sorry, I dont understand!! :-(
Could you please explain it with code?
With my last code I get:
1 2 4
3 3 4
instead of
1 2
3 4
I am trying to improve loadNotebook and saveNotebook (for saving notebook perspectives in Zerobrane studio) to save 2D layouts instead of of just 1D.
I looked at void wxAuiNotebook::Split in auibook.cpp but it uses classes I cant reach (as wxTabFrame) and function FindTab which depends on wxTabFrame also.
Thank you very much. 
victor
 ----- Original Message ----- 
 From: John Labenski 
 To: wxl...@li... 
 Sent: Tuesday, October 22, 2013 4:28 AM
 Subject: Re: [wxlua-users] four tabs one in each corner withwxAuiNotebook:Split()
 On Mon, Oct 21, 2013 at 2:01 PM, Victor Bombi <so...@te...> wrote:
 Hello:
 How could I use wxAuiNotebook:Split() to get four tabs one in each corner.
 I think you may need to insert a page into the beginning to get that last split. Add three pages, split into three parts. That part is straightforward, but to get that last split you probably need to insert a page before/after the single half-page then split that to get four quarter-pages.
 Regards,
 John
------------------------------------------------------------------------------
 ------------------------------------------------------------------------------
 October Webinars: Code for Performance
 Free Intel webinars can help you accelerate application performance.
 Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
 the latest Intel processors and coprocessors. See abstracts and register >
 http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
------------------------------------------------------------------------------
 _______________________________________________
 wxlua-users mailing list
 wxl...@li...
 https://lists.sourceforge.net/lists/listinfo/wxlua-users
From: John L. <jla...@gm...> - 2013年10月22日 02:28:37
On Mon, Oct 21, 2013 at 2:01 PM, Victor Bombi <so...@te...> wrote:
> Hello:
>
> How could I use wxAuiNotebook:Split() to get four tabs one in each corner.
>
>
I think you may need to insert a page into the beginning to get that last
split. Add three pages, split into three parts. That part is
straightforward, but to get that last split you probably need to insert a
page before/after the single half-page then split that to get four
quarter-pages.
Regards,
 John
From: Victor B. <so...@te...> - 2013年10月21日 18:01:24
Hello:
How could I use wxAuiNotebook:Split() to get four tabs one in each corner.
With the following code I cant get exactly that
splits = {false,wx.wxRIGHT,wx.wxBOTTOM,wx.wxRIGHT}
Log = {}
for i=1,4 do
 Log[i] = CreateLog()
 notebookLogs:AddPage(Log[i], "Log"..i)
 if splits[i] then
 notebookLogs:Split(notebookLogs:GetPageIndex(Log[i]),splits[i])
 end
end
Best Regards
victor bombi
From: John L. <jla...@gm...> - 2013年10月21日 03:57:45
On Thu, Oct 17, 2013 at 5:59 PM, Paul K <pau...@ya...> wrote:
> Hi John,
>
> Would it be possible to add wxFileSystemWatcher and
> wxFileSystemWatcherEvent to wxlua? Thank you!
>
Added to SVN trunk...
Regards,
 John
From: Paul K <pau...@ya...> - 2013年10月17日 21:59:45
Hi John,
Would it be possible to add wxFileSystemWatcher and
wxFileSystemWatcherEvent to wxlua? Thank you!
Main class: http://docs.wxwidgets.org/trunk/classwx_file_system_watcher.html
Event: http://docs.wxwidgets.org/trunk/classwx_file_system_watcher_event.html
Constants: http://docs.wxwidgets.org/trunk/fswatcher_8h.html#a45a6bf888dcae5120a0e41c074ef0d34
Paul.
From: Paul K <pau...@ya...> - 2013年10月08日 18:08:15
Hi John,
>> Could you please add SetPageToolTip and GetPageToolTip to wxAuiNotebook
> Added to SVN trunk.
Great! Thank you for the quick turn-around.
Is it possible to write a small lua/shell script to automate some of
this work? This would make it easier to test some of these changes
before even requesting them and to send you diffs to make it less work
for you...
Paul.
From: Andreas F. <an...@fa...> - 2013年10月08日 15:33:12
On 07.10.2013 at 22:33 John Labenski wrote:
 >>> I'm trying to understand how wxLua handles its event mechanism. I can see that
 >>> for every call to Connect(), wxLua will create a new object of wxLuaEventCallback.
 >>> But I don't see where these get deleted.
> 
> They are deleted by the wxEvtHandler when Connect() is called.
> http://sourceforge.net/p/wxlua/svn/HEAD/tree/trunk/wxLua/modules/wxlua/wxlcallb.cpp#l93
> 
> Note the comment about the userdata here:
> http://docs.wxwidgets.org/trunk/classwx_evt_handler.html#a78719e8b82c9f9c6e4056b3449df1943
> 
> Separately, wxluaR_unref() is used to unref the Lua event handler
> functions that are called when a wxEvent is handled. You see two
> calls to it, one for normal event handling and a separate one for
> window destruction, this is to be expected.
Thanks for the explanation. I didn't know that wxWidgets will delete
the user data passed to Connect().
-- 
Best regards,
 Andreas Falkenhahn mailto:an...@fa...
From: John L. <jla...@gm...> - 2013年10月08日 05:03:12
On Thu, Oct 3, 2013 at 7:00 PM, Paul K <pau...@ya...> wrote:
> Hi John,
>
> Could you please add SetPageToolTip and GetPageToolTip to
> wxAuiNotebook (
> http://docs.wxwidgets.org/2.9.5/classwx_aui_notebook.html#a3caacd690d1efb0a432799148d978dc4
> )?
> Thank you.
>
>
Added to SVN trunk.
Thanks,
 -John
From: John L. <jla...@gm...> - 2013年10月08日 04:57:04
On Thu, Oct 3, 2013 at 6:24 AM, Andreas Falkenhahn
<an...@fa...>wrote:
> Hi,
>
> wxLua currently doesn't seem to expose the wxNOT_FOUND constant which is
> often used
> when working with various controls. I think the following line should be
> added to
> bindings/wxcore_defsutils.i to make wx.wxNOT_FOUND available to wxLua:
>
>
Added to SVN.
Thanks,
 -John
From: John L. <jla...@gm...> - 2013年10月08日 04:41:46
On Tue, Oct 1, 2013 at 8:09 PM, Milind Gupta <mil...@gm...> wrote:
> Hi,
> I am trying to build wxLua on windows using tdm gcc. If I try
> building wxwidgets monolithic it does not work, so without monolithic I
> have the CMAKE output after I do configure a couple of times is:
>
> *
> ---------------------------------------------------------------------------
>
> * CMake command line options and tips specific to this project
>
> *
>
> * In the CMake GUI you can set values and press configure a few times
>
> * and until there are no more red items, then press generate.
>
> *
>
> * Usage: cmake -D[OPTION_NAME]=[OPTION_VALUE] /path/to/CMakeLists.txt/
>
> *
> ---------------------------------------------------------------------------
>
> ...
> * * Finding wxWidgets for GCC and Unix type systems
>
> * -DwxWidgets_CONFIG_EXECUTABLE=[path/to/wx-config] :
>
> * Specify path to wx-config script for GCC and Unix type builds
>
> *
> ---------------------------------------------------------------------------
>
>
I think you need to set -DwxWidgets_CONFIG_EXECUTABLE=path/to/wx-config.
Regards,
 John
From: John L. <jla...@gm...> - 2013年10月07日 20:33:55
> >> I'm trying to understand how wxLua handles its event mechanism. I can
> see that
> >> for every call to Connect(), wxLua will create a new object of
> wxLuaEventCallback.
> >> But I don't see where these get deleted.
>
>
They are deleted by the wxEvtHandler when Connect() is called.
http://sourceforge.net/p/wxlua/svn/HEAD/tree/trunk/wxLua/modules/wxlua/wxlcallb.cpp#l93
Note the comment about the userdata here:
http://docs.wxwidgets.org/trunk/classwx_evt_handler.html#a78719e8b82c9f9c6e4056b3449df1943
Separately, wxluaR_unref() is used to unref the Lua event handler functions
that are called when a wxEvent is handled. You see two calls to it, one for
normal event handling and a separate one for window destruction, this is to
be expected.
Regards,
 John
From: John L. <jla...@gm...> - 2013年10月06日 06:42:28
On Fri, Oct 4, 2013 at 9:31 AM, Andre Arpin <ar...@ki...> wrote:
> Change line 27
> from:
> io.write(string.format(unpack(arg)))
> to:
> io.write(string.format(unpack({...})))
> I am using 5.2
>
>
Thanks for the fix, applied in SVN.
Regards,
 John
From: Andreas F. <an...@fa...> - 2013年10月05日 20:52:14
Hi Paul,
On 05.10.2013 at 20:09 Paul K wrote:
> Hi Andreas,
>> I'm trying to understand how wxLua handles its event mechanism. I can see that
>> for every call to Connect(), wxLua will create a new object of wxLuaEventCallback.
>> But I don't see where these get deleted.
> If you want to delete callbacks explicitly, there is Disconnect()
> call. I haven't looked at the wxlua source, but as far as I
> understand, callbacks should be removed when Disconnect is called (I
> use it in several places in my application).
Yes, I know that I can delete them manually via Disconnect() but I'd like to get
some more insight on how they're deleted when a window is destroyed and the
wxLuaWinDestroyCallback is called which then clears all the wxLuaEventCallbacks
pertaining to the window that is being destroyed. But I don't know enough
about C++ and wxWidgets to be able to tell where exactly the dtor is invoked.
I'd assume that it is the call to Unref() in ClearwxLuaState() but I'm
not sure, that's why I'd like to have some feedback on it...
-- 
Best regards,
 Andreas Falkenhahn mailto:an...@fa...
From: Paul K <pau...@ya...> - 2013年10月05日 19:14:57
Hi Andreas,
> I'm trying to understand how wxLua handles its event mechanism. I can see that
> for every call to Connect(), wxLua will create a new object of wxLuaEventCallback.
> But I don't see where these get deleted.
If you want to delete callbacks explicitly, there is Disconnect()
call. I haven't looked at the wxlua source, but as far as I
understand, callbacks should be removed when Disconnect is called (I
use it in several places in my application).
Paul.
On Sat, Oct 5, 2013 at 10:45 AM, Andreas Falkenhahn
<an...@fa...> wrote:
> Hi,
>
> I'm trying to understand how wxLua handles its event mechanism. I can see that
> for every call to Connect(), wxLua will create a new object of wxLuaEventCallback.
> But I don't see where these get deleted.
>
> My assumption is that whenever a window is closed, wxLuaWinDestroyCallback will
> do the cleaning up and AFAICS it iterates over all event callbacks and calls
>
> wxlCallback->ClearwxLuaState();
>
> on every callback it finds. But it also does the following:
>
> wxluaR_unref(L, wxlCallback->GetLuaFuncRef(), &wxlua_lreg_refs_key);
>
> This is confusing me because this is also done in the wxLuaEventCallback dtor:
>
> m_wxlState.wxluaR_Unref(m_luafunc_ref, &wxlua_lreg_refs_key);
>
> So are function references possibly removed twice here?
>
> But back to my original question: I'd like to know which code causes the
> wxLuaEventCallback dtor to be called. My assumption is that it is ClearWxLuaState()
> because that decrements the reference count and then the object might be marked
> for garbage collection by the wxWidgets main loop.
>
> But I don't know enough about C++ and wxWidgets so I'd really be glad if
> somebody could tell me if my assumption is right. I just need to know what
> code in wxLua triggers the wxLuaEventCallback dtor.
>
> Thanks!
>
> --
> Best regards,
> Andreas Falkenhahn mailto:an...@fa...
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
> _______________________________________________
> wxlua-users mailing list
> wxl...@li...
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
From: Andreas F. <an...@fa...> - 2013年10月05日 17:43:52
Hi,
I'm trying to understand how wxLua handles its event mechanism. I can see that
for every call to Connect(), wxLua will create a new object of wxLuaEventCallback.
But I don't see where these get deleted.
My assumption is that whenever a window is closed, wxLuaWinDestroyCallback will
do the cleaning up and AFAICS it iterates over all event callbacks and calls 
	wxlCallback->ClearwxLuaState();
on every callback it finds. But it also does the following:
 wxluaR_unref(L, wxlCallback->GetLuaFuncRef(), &wxlua_lreg_refs_key);
This is confusing me because this is also done in the wxLuaEventCallback dtor:
 m_wxlState.wxluaR_Unref(m_luafunc_ref, &wxlua_lreg_refs_key);
So are function references possibly removed twice here? 
But back to my original question: I'd like to know which code causes the
wxLuaEventCallback dtor to be called. My assumption is that it is ClearWxLuaState()
because that decrements the reference count and then the object might be marked
for garbage collection by the wxWidgets main loop.
But I don't know enough about C++ and wxWidgets so I'd really be glad if
somebody could tell me if my assumption is right. I just need to know what
code in wxLua triggers the wxLuaEventCallback dtor.
Thanks!
-- 
Best regards,
 Andreas Falkenhahn mailto:an...@fa...
From: Andre A. <ar...@ki...> - 2013年10月04日 13:32:04
Change line 27
from:
 io.write(string.format(unpack(arg)))
to:
 io.write(string.format(unpack({...})))
I am using 5.2
By the way the transition to 5.2 is surprisingly easy.
I had fewer changes to do then expected.
Thank you for all that great work.
Andre
From: Paul K <pau...@ya...> - 2013年10月03日 23:00:20
Hi John,
Could you please add SetPageToolTip and GetPageToolTip to
wxAuiNotebook (http://docs.wxwidgets.org/2.9.5/classwx_aui_notebook.html#a3caacd690d1efb0a432799148d978dc4)?
Thank you.
Paul.
From: Andreas F. <an...@fa...> - 2013年10月03日 10:23:09
Hi,
wxLua currently doesn't seem to expose the wxNOT_FOUND constant which is often used
when working with various controls. I think the following line should be added to
bindings/wxcore_defsutils.i to make wx.wxNOT_FOUND available to wxLua:
#define wxNOT_FOUND
-- 
Best regards,
 Andreas Falkenhahn mailto:an...@fa...
From: Andreas F. <an...@fa...> - 2013年10月02日 21:55:46
Hi,
could somebody tell me what I'm doing wrong with SetSizeHints() in the
following code? I have a window with a listbox and four buttons and
I want the window to use the size of the vertical boxsizer, so that there
are no blank spaces. I think SetSizeHints() is the function to use for
that but unfortunately, it doesn't work. There's still lots of blank
space in the window, although I'm calling SetSizeHints() on the boxsizer.
Here's the code:
local frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, "Test")
local panel = wx.wxPanel(frame, -1) 
local vbox = wx.wxBoxSizer(wx.wxVERTICAL) 
local listBox = wx.wxListBox(panel, wx.wxID_ANY) 
local buttonSizer = wx.wxBoxSizer(wx.wxHORIZONTAL)
local add_button = wx.wxButton(panel, wx.wxID_ANY, "Add")
local moveup_button = wx.wxButton(panel, wx.wxID_ANY, "Move up")
local movedown_button = wx.wxButton(panel, wx.wxID_ANY, "Move down")		
local remove_button = wx.wxButton(panel, wx.wxID_ANY, "Remove")
buttonSizer:Add(add_button, 0, wx.wxALIGN_CENTER+wx.wxALL, 5)
buttonSizer:Add(moveup_button, 0, wx.wxALIGN_CENTER+wx.wxALL, 5)
buttonSizer:Add(movedown_button, 0, wx.wxALIGN_CENTER+wx.wxALL, 5)
buttonSizer:Add(remove_button, 0, wx.wxALIGN_CENTER+wx.wxALL, 5)
	
vbox:Add(listBox, 0, wx.wxEXPAND+wx.wxALL, 5)	
vbox:Add(buttonSizer, 0, wx.wxALL+wx.wxGROW+wx.wxCENTER)
panel:SetSizer(vbox) 
vbox:SetSizeHints(panel)
 	 								
frame:Show(true) 
 
wx.wxGetApp():MainLoop()
-- 
Best regards,
 Andreas Falkenhahn mailto:an...@fa...
From: Milind G. <mil...@gm...> - 2013年10月02日 00:09:36
Hi,
 I am trying to build wxLua on windows using tdm gcc. If I try
building wxwidgets monolithic it does not work, so without monolithic I
have the CMAKE output after I do configure a couple of times is:
*
---------------------------------------------------------------------------
* CMake command line options and tips specific to this project
*
* In the CMake GUI you can set values and press configure a few times
* and until there are no more red items, then press generate.
*
* Usage: cmake -D[OPTION_NAME]=[OPTION_VALUE] /path/to/CMakeLists.txt/
*
---------------------------------------------------------------------------
* -DHELP=TRUE
* Show this help message and exit, no files will be generated.
* -DCMAKE_BUILD_TYPE=[Debug, Release, RelWithDebInfo, MinSizeRel] :
(Default Debug)
* Makefiles : You must set the build type to Debug, Release...
* MSVC GUI : No need to set this since you can choose it in the GUI.
* -DBUILD_SHARED_LIBS=[TRUE, FALSE] : (Default static in MSW, shared in
Linux)
* Build shared (.DLL or .so) or static (.lib or .a) libraries.
*
---------------------------------------------------------------------------
*****************************************************************************
* BUILD TYPE: Debug
* BUILD_SHARED_LIBS: OFF
*****************************************************************************
* System is 32-bit TRUE, is 64-bit FALSE
*****************************************************************************
* CMAKE_SOURCE_DIR = C:/Users/milindgupta/Downloads/wxLua-2.8.12.3-src
* CMAKE_BINARY_DIR = C:/Users/milindgupta/Downloads/wxLua-build
*****************************************************************************
 *
---------------------------------------------------------------------------
* wxWidgets library settings :
*
* Note that ONLY an all shared (DLL) or all static build is supported.
* I.E. If you choose shared you must link to shared wxWidgets libs.
* Set -DBUILD_SHARED_LIBS=[TRUE, FALSE] to control shared/static lib.
*
* Finding wxWidgets for MSW and MSVC
* -DwxWidgets_ROOT_DIR=[path] : (e.g. /path/to/wxWidgets/)
* Path to the root of the wxWidgets build, must at least set this.
* -DwxWidgets_LIB_DIR=[path] : (e.g. /path/to/wxWidgets/lib/vc_lib/)
* Path to the wxWidgets lib dir also set this if libs can't be found.
* -DwxWidgets_CONFIGURATION=[configuration] :
* Set wxWidgets configuration; e.g. msw, mswu, mswunivu...
* Where 'u' = unicode and 'd' = debug.
* MSVC GUI : You need only choose msw, mswu, mswuniv, mswunivu since
* release or debug mode is chosen in the GUI.
* -DwxWidgets_COMPONENTS=[...stc;html;adv;core;base or mono] :
* For non-monolithic builds choose the wxWidgets libs to link to.
* xrc;xml;gl;net;media;propgrid;richtext;aui;stc;html;adv;core;base
* For monolithic builds choose mono and the contribs libs.
* stc;mono
* The extra decorations, e.g. wxmsw28ud_adv.lib, will be searched for.
* Libs that cannot be found will be printed below, please fix/remove
* them to be able to build this project.
* You will get compilation/linker errors if wxWidgets is not found.
*
* Finding wxWidgets for GCC and Unix type systems
* -DwxWidgets_CONFIG_EXECUTABLE=[path/to/wx-config] :
* Specify path to wx-config script for GCC and Unix type builds
*
---------------------------------------------------------------------------
 * Using these wxWidgets components:
gl;xrc;xml;net;media;richtext;aui;stc;html;adv;core;base
Could NOT find wxWidgets (missing: wxWidgets_FOUND)
*
CMake Warning at build/CMakewxAppLib.cmake:313 (message):
* WARNING: Could not find wxWidgets! Please see help above.
Call Stack (most recent call first):
CMakeLists.txt:54 (FIND_WXWIDGETS)
* - wxWidgets_VERSION = 2.8.12 = 2.8.12
* - wxWidgets_COMPONENTS =
gl;xrc;xml;net;media;richtext;aui;stc;html;adv;core;base
* - wxWidgets_INCLUDE_DIRS =
C:/wxWidgets-2.8.12/lib/gcc_dll/mswu;C:/wxWidgets-2.8.12/include
* - wxWidgets_LIBRARY_DIRS = C:/wxWidgets-2.8.12/lib/gcc_dll
* - wxWidgets_LIBRARIES =
C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_xrc.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxbase28u_xml.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxbase28u_net.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_media.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_richtext.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_aui.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_stc.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_html.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_adv.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxmsw28u_core.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxbase28u.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxpng.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxtiff.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxjpeg.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxzlib.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxregexu.a;C:/wxWidgets-2.8.12/lib/gcc_dll/libwxexpat.a;opengl32;glu32;winmm;comctl32;rpcrt4;wsock32
* - wxWidgets_CXX_FLAGS =
* - wxWidgets_DEFINITIONS = UNICODE;_UNICODE
* - wxWidgets_DEFINITIONS_DEBUG = _DEBUG;__WXDEBUG__
* - wxWidgets_PORTNAME =
* - wxWidgets_UNIVNAME =
* - wxWidgets_UNICODEFLAG =
* - wxWidgets_DEBUGFLAG =
WARNING: Unable to find requested wxWidgets component : gl
*
wxWidgets requested but not found.
* WARNING: Specified wxLuaBinding lib 'propgrid' in variable
wxLuaBind_COMPONENTS is missing from wxWidgets_COMPONENTS so it will not be
compiled.
* wxLua using built-in Lua 5.1 library
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
* WARNING: Doxygen NOT found, wxLua_doxygen target will not be generated.
wxWidgets requested but not found.
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
* WARNING: Doxygen NOT found, wxStEdit_doxygen target will not be generated.
Configuring done
-------------------------------------------------------------------------------------------------------------------
But if I continue to do the make I get this error in the output:
Scanning dependencies of target wxStEditLib_precomp
[ 0%] Generating include/wxStEditLib_precomp.h.gch
C:/Users/milindgupta/Downloads/wxLua-2.8.12.3-src/modules/wxstedit/src/precomp.h
:7:23: fatal error: wx/wxprec.h: No such file or directory
compilation terminated.
mingw32-make[2]: *** [modules/wxstedit/include/wxStEditLib_precomp.h.gch]
Error
1
mingw32-make[1]: ***
[modules/wxstedit/CMakeFiles/wxStEditLib_precomp.dir/all] E
rror 2
mingw32-make: *** [all] Error 2
I compiled both the wxwidgets and the stc library. I don't know why it says
wxWidgets not found even though I have the right path in the
wxWidgets_ROOT_DIR variable.
Milind

Showing 23 results of 23

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 によって変換されたページ (->オリジナル) /