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: Paul K <pau...@ya...> - 2013-02-26 06:05:34
|
Hi John, > This is how I do it in stedit.cpp in the modules/wxstedit/src dir. Should have checked there; I came up with very similar code, but also included DocLineFromVisible: function isLineVisible(line) local firstline = editor:DocLineFromVisible(editor:GetFirstVisibleLine()) local lastline = math.min(editor:GetLineCount(), editor:DocLineFromVisible(editor:GetFirstVisibleLine() + editor:LinesOnScreen())) return line >= firstline and line <= lastline end This is needed because lines can be wrapped (as they are in my case), but LinesOnScreen counts those as well (so the number on the screen will be larger than the number in the document). Paul. On Mon, Feb 25, 2013 at 9:28 PM, John Labenski <jla...@gm...> wrote: > On Mon, Feb 25, 2013 at 1:30 PM, Paul K <pau...@ya...> wrote: >> In the best tradition of self-answering, it turned out that >> GetLineVisible doesn't do what I need: it only checks against whether >> the line is hidden because of folding (not if it's outside of the >> visible area, which is what I'm looking for). I don't see any other >> API method that does this, so I calculate it myself using >> GetFirstVisibleLine, LinesOnScreen, and DocLineFromVisible. > > Yes. It doesn't have the clearest name. I think you know this, but the > wxStyledTextCtrl function names map pretty closely to Scintilla's > message names. > > http://www.scintilla.org/ScintillaDoc.html#SCI_GETLINEVISIBLE > > > This is how I do it in stedit.cpp in the modules/wxstedit/src dir. > > int first_line = top_line < 0 ? GetFirstVisibleLine() : top_line; > int line_count = GetLineCount(); > int lines_visible = LinesOnScreen(); > int last_line = bottom_line < 0 ? wxMin(line_count, first_line > + lines_visible) : bottom_line; > > > Regards, > > ------------------------------------------------------------------------------ > 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_d2d_feb > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users |
From: John L. <jla...@gm...> - 2013-02-26 05:29:52
|
On Mon, Feb 25, 2013 at 1:30 PM, Paul K <pau...@ya...> wrote: > In the best tradition of self-answering, it turned out that > GetLineVisible doesn't do what I need: it only checks against whether > the line is hidden because of folding (not if it's outside of the > visible area, which is what I'm looking for). I don't see any other > API method that does this, so I calculate it myself using > GetFirstVisibleLine, LinesOnScreen, and DocLineFromVisible. Yes. It doesn't have the clearest name. I think you know this, but the wxStyledTextCtrl function names map pretty closely to Scintilla's message names. http://www.scintilla.org/ScintillaDoc.html#SCI_GETLINEVISIBLE This is how I do it in stedit.cpp in the modules/wxstedit/src dir. int first_line = top_line < 0 ? GetFirstVisibleLine() : top_line; int line_count = GetLineCount(); int lines_visible = LinesOnScreen(); int last_line = bottom_line < 0 ? wxMin(line_count, first_line + lines_visible) : bottom_line; Regards, |
From: Paul K <pau...@ya...> - 2013-02-25 18:31:08
|
In the best tradition of self-answering, it turned out that GetLineVisible doesn't do what I need: it only checks against whether the line is hidden because of folding (not if it's outside of the visible area, which is what I'm looking for). I don't see any other API method that does this, so I calculate it myself using GetFirstVisibleLine, LinesOnScreen, and DocLineFromVisible. Paul. On Sun, Feb 24, 2013 at 10:10 PM, Paul K <pau...@ya...> wrote: > Hi John, > > Thank you for adding wxAuiToolBar to wxlua. One short question on > GetLineVisible. According to the documentation it should return "1 if > the passed in line is visible or 0 if it is not". For some reason, no > matter what I pass, I always get back "true". Is it possible that > there is some bug in the conversion of numbers wxlua gets from > wxwidgets/Scintilla? Thank you. > > Paul. |
From: Paul K <pau...@ya...> - 2013-02-25 06:10:49
|
Hi John, Thank you for adding wxAuiToolBar to wxlua. One short question on GetLineVisible. According to the documentation it should return "1 if the passed in line is visible or 0 if it is not". For some reason, no matter what I pass, I always get back "true". Is it possible that there is some bug in the conversion of numbers wxlua gets from wxwidgets/Scintilla? Thank you. Paul. |
From: Paul K <pau...@ya...> - 2013-02-02 01:14:45
|
Hi John, > I will fix this tomorrow, but note that if you don't intend to call > that particular function you can just rem out the failing part in the > C++ binding code and put in whatever minimal stub is needed to get it > to compile. I tried to compile 2.9.5 using the latest code from SVN (including your last fix), but it still fails with a similar issue: [ 47%] Building CXX object modules/wxbind/CMakeFiles/wxLuaBindLib.dir/src/wxadv_bind.cpp.obj D:\Lua\build\wxlua\modules\wxbind\src\wxadv_bind.cpp: In function 'int wxLua_wxGridCellEditor_PaintBackground1(lua_State*)': D:\Lua\build\wxlua\modules\wxbind\src\wxadv_bind.cpp:8204:43: error: no matching function for call to 'wxGridCellEditor::PaintBackground(const wxRect&, const wxGridCellAttr&)' D:\Lua\build\wxlua\modules\wxbind\src\wxadv_bind.cpp:8204:43: note: candidate is: D:/Lua/build/wxWidgets-2.9.5/include/wx/generic/grid.h:216:18: note: virtual void wxGridCellEditor::PaintBackground(wxDC&, const wxRect&, const wxGridCellAttr&) D:/Lua/build/wxWidgets-2.9.5/include/wx/generic/grid.h:216:18: note: candidate expects 3 arguments, 2 provided This includes your fix in rev #158. I'd prefer not to stub and, but rather compile out of the box. Also, it seems like the fix is likely to break in the next update of wxwidgets: !%wxchkver_2_9_5 virtual void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr ); %wxchkver_2_9_5 virtual void PaintBackground(const wxRect& rectCell, const wxGridCellAttr &attr ); Is it possible to do "<" and ">=" instead of "!" and (implied) "=="? Thank you. Paul On Wed, Jan 16, 2013 at 10:03 PM, John Labenski <jla...@gm...> wrote: > On Thu, Dec 20, 2012 at 6:05 PM, AZ <red...@gm...> wrote: >> I tried to build wxlua against 2.9.5 SVN trunk but it failed: is it 2.9 >> support a work in progress? > > No... not so much a work in progress as continual work of mapping the > functions. Since wxLua wraps so much of wxWidgets any change in their > API anywhere causes breakage. > > I will fix this tomorrow, but note that if you don't intend to call > that particular function you can just rem out the failing part in the > C++ binding code and put in whatever minimal stub is needed to get it > to compile. > > Regards, > John > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122712 > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users |
From: Paul K <pau...@ya...> - 2013-01-31 06:19:40
|
> 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 <jla...@gm...> wrote: > On Tue, Jan 29, 2013 at 1:53 PM, Paul K <pau...@ya...> wrote: >> Hi John, >> >> I also looked at wxSTEditor::RefEditor (src/stedit.cpp) that has >> similar logic, but it didn't shed any light on why what I am doing >> below is not working. >> >>> local docpointer = e1:GetDocPointer() >>> e2:AddRefDocument(docpointer) --<-- crashes here > > Please update from SVN, it should work now. Sorry, I was not correctly > handling the void* DocPointers pushed as lightuserdata into Lua > correctly. > > > 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_d2d_jan > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users |
From: John L. <jla...@gm...> - 2013-01-30 05:18:31
|
On Tue, Jan 29, 2013 at 1:53 PM, Paul K <pau...@ya...> wrote: > Hi John, > > I also looked at wxSTEditor::RefEditor (src/stedit.cpp) that has > similar logic, but it didn't shed any light on why what I am doing > below is not working. > >> local docpointer = e1:GetDocPointer() >> e2:AddRefDocument(docpointer) --<-- crashes here Please update from SVN, it should work now. Sorry, I was not correctly handling the void* DocPointers pushed as lightuserdata into Lua correctly. Regards, John |
From: Paul K <pau...@ya...> - 2013-01-29 18:54:04
|
Hi John, I also looked at wxSTEditor::RefEditor (src/stedit.cpp) that has similar logic, but it didn't shed any light on why what I am doing below is not working. > local docpointer = e1:GetDocPointer() > e2:AddRefDocument(docpointer) --<-- crashes here It actually crashes whether I use e1 or e2 to add a reference. Similarly, using SetDocPointer crashes too. This is all using wxlua 2.8.12 with wxwidgets 2.8.12 on windows. Any hint on how to make it work would be appreciated. Paul. On Tue, Jan 22, 2013 at 11:45 PM, Paul K <pau...@ya...> wrote: > Hi John, > > It still crashes right on AddRefDocument: > > require "wx" > local frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, "STC Demo", > wx.wxDefaultPosition, wx.wxSize(450, 450), wx.wxDEFAULT_FRAME_STYLE ) > local e1 = wxstc.wxStyledTextCtrl(frame, wx.wxID_ANY, > wx.wxDefaultPosition, wx.wxSize(0, 0), wx.wxBORDER_STATIC) > local e2 = wxstc.wxStyledTextCtrl(frame, wx.wxID_ANY, > wx.wxDefaultPosition, wx.wxSize(0, 0), wx.wxBORDER_STATIC) > local sizer = wx.wxBoxSizer(wx.wxVERTICAL) > sizer:Add(e1, 1, wx.wxEXPAND + wx.wxALL, 10) > sizer:Add(e2, 1, wx.wxEXPAND + wx.wxALL, 10) > frame:SetAutoLayout(true) > frame:SetSizer(sizer) > > local docpointer = e1:GetDocPointer() > e2:AddRefDocument(docpointer) --<-- crashes here > > frame:Show(true) > wx.wxGetApp():MainLoop() > > What am I doing wrong? I just need a simple example that shows two STC > windows with the same document. Thank you. > > Paul. > > On Tue, Jan 22, 2013 at 8:18 PM, John Labenski <jla...@gm...> wrote: >> On Sun, Jan 20, 2013 at 1:27 AM, Paul K <pau...@ya...> wrote: >>> Hi All, >>> >>> Does anyone have an example of how multiple views can be used in >>> wxlua? I looked at the documentation here >>> http://www.yellowbrain.com/stc/mult_views.html, but even a simple code >>> like this crashes the app: >>> >>> local pointer = ed:GetDocPointer() >>> ed:ReleasePointer(pointer) >> >> You need to increase the ref count of the doc pointer. >> >> AddRefDocument(origEditor->GetDocPointer()); >> SetDocPointer(origEditor->GetDocPointer()); >> >> and then release it before the refed editor is destroyed. >> >> ReleaseDocument(GetDocPointer()); >> >> Hope this helps, >> John >> >> ------------------------------------------------------------------------------ >> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft >> MVPs and experts. ON SALE this month only -- learn more at: >> http://p.sf.net/sfu/learnnow-d2d >> _______________________________________________ >> wxlua-users mailing list >> wxl...@li... >> https://lists.sourceforge.net/lists/listinfo/wxlua-users |
From: Paul K <pau...@ya...> - 2013-01-23 07:45:15
|
Hi John, It still crashes right on AddRefDocument: require "wx" local frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, "STC Demo", wx.wxDefaultPosition, wx.wxSize(450, 450), wx.wxDEFAULT_FRAME_STYLE ) local e1 = wxstc.wxStyledTextCtrl(frame, wx.wxID_ANY, wx.wxDefaultPosition, wx.wxSize(0, 0), wx.wxBORDER_STATIC) local e2 = wxstc.wxStyledTextCtrl(frame, wx.wxID_ANY, wx.wxDefaultPosition, wx.wxSize(0, 0), wx.wxBORDER_STATIC) local sizer = wx.wxBoxSizer(wx.wxVERTICAL) sizer:Add(e1, 1, wx.wxEXPAND + wx.wxALL, 10) sizer:Add(e2, 1, wx.wxEXPAND + wx.wxALL, 10) frame:SetAutoLayout(true) frame:SetSizer(sizer) local docpointer = e1:GetDocPointer() e2:AddRefDocument(docpointer) --<-- crashes here frame:Show(true) wx.wxGetApp():MainLoop() What am I doing wrong? I just need a simple example that shows two STC windows with the same document. Thank you. Paul. On Tue, Jan 22, 2013 at 8:18 PM, John Labenski <jla...@gm...> wrote: > On Sun, Jan 20, 2013 at 1:27 AM, Paul K <pau...@ya...> wrote: >> Hi All, >> >> Does anyone have an example of how multiple views can be used in >> wxlua? I looked at the documentation here >> http://www.yellowbrain.com/stc/mult_views.html, but even a simple code >> like this crashes the app: >> >> local pointer = ed:GetDocPointer() >> ed:ReleasePointer(pointer) > > You need to increase the ref count of the doc pointer. > > AddRefDocument(origEditor->GetDocPointer()); > SetDocPointer(origEditor->GetDocPointer()); > > and then release it before the refed editor is destroyed. > > ReleaseDocument(GetDocPointer()); > > Hope this helps, > John > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnnow-d2d > _______________________________________________ > wxlua-users mailing list > wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users |
From: John L. <jla...@gm...> - 2013-01-23 04:34:19
|
On Sun, Jan 20, 2013 at 5:46 AM, Victor Bombi <so...@te...> wrote: > Hello, > > this only happens with wx.lua linked against wxwidgets 2.9.4 (not 2.8.12) > > to reproduce strange behaviour > > 1- open editor.wx.lua > 2- create a text of several lines surrounded by --[[ and ]]-- > 3- change betwen --[[ and ---[[ > > strange behaviour: lines only get colour updated when you position the > cursor on that line. > > I also had other strange behaviour about updating deleted lines but I dont > have reproducing sequence. Humm... this is probably a problem with the scintilla editor's lexer. I will take a look, but I thinking fixing this may have to be done with the wxWidget's code itself. Regards, John |
From: John L. <jla...@gm...> - 2013-01-23 04:20:31
|
On Sun, Jan 20, 2013 at 2:06 AM, Milind Gupta <mil...@gm...> wrote: > Hi, > Is the wxRichText class available in wxLua 2.9? Are there any plans > to add it? There are plans, but it has not been added yet. Unfortunately, I don't know when I ll have free time to do it. Regards, John |
From: John L. <jla...@gm...> - 2013-01-23 04:18:23
|
On Sun, Jan 20, 2013 at 1:27 AM, Paul K <pau...@ya...> wrote: > Hi All, > > Does anyone have an example of how multiple views can be used in > wxlua? I looked at the documentation here > http://www.yellowbrain.com/stc/mult_views.html, but even a simple code > like this crashes the app: > > local pointer = ed:GetDocPointer() > ed:ReleasePointer(pointer) You need to increase the ref count of the doc pointer. AddRefDocument(origEditor->GetDocPointer()); SetDocPointer(origEditor->GetDocPointer()); and then release it before the refed editor is destroyed. ReleaseDocument(GetDocPointer()); Hope this helps, John |
From: Victor B. <so...@te...> - 2013-01-20 10:46:27
|
Hello, this only happens with wx.lua linked against wxwidgets 2.9.4 (not 2.8.12) to reproduce strange behaviour 1- open editor.wx.lua 2- create a text of several lines surrounded by --[[ and ]]-- 3- change betwen --[[ and ---[[ strange behaviour: lines only get colour updated when you position the cursor on that line. I also had other strange behaviour about updating deleted lines but I dont have reproducing sequence. Best Victor Bombi |
From: Milind G. <mil...@gm...> - 2013-01-20 07:06:25
|
Hi, Is the wxRichText class available in wxLua 2.9? Are there any plans to add it? Thanks Milind |
From: Paul K <pau...@ya...> - 2013-01-20 06:27:35
|
Hi All, Does anyone have an example of how multiple views can be used in wxlua? I looked at the documentation here http://www.yellowbrain.com/stc/mult_views.html, but even a simple code like this crashes the app: local pointer = ed:GetDocPointer() ed:ReleasePointer(pointer) I tried several other combinations that I thought would work, but all cause app crashes with the same error (c000005). Is there a working combination that allows me to have two views of the same document? I'm running on Windows using wxlua 2.8.12.x and wxwidgets 2.8.12. Paul. |
From: Victor B. <so...@te...> - 2013-01-17 14:55:42
|
> > This was tough to find, but by remming out parts I was able to find > where the code that caused the crash came from. > Thanks a lot. I think I have understood basic things about sizers that I could not find in any web tutorial Best Victor Bombi |
From: John L. <jla...@gm...> - 2013-01-17 06:03:24
|
On Thu, Dec 20, 2012 at 6:05 PM, AZ <red...@gm...> wrote: > I tried to build wxlua against 2.9.5 SVN trunk but it failed: is it 2.9 > support a work in progress? No... not so much a work in progress as continual work of mapping the functions. Since wxLua wraps so much of wxWidgets any change in their API anywhere causes breakage. I will fix this tomorrow, but note that if you don't intend to call that particular function you can just rem out the failing part in the C++ binding code and put in whatever minimal stub is needed to get it to compile. Regards, John |
From: John L. <jla...@gm...> - 2013-01-17 05:57:09
|
On Wed, Jan 16, 2013 at 12:58 PM, Victor Bombi <so...@te...> wrote: > Auto answering. I made a function (Collapsible) for getting what I wanted This is fine too... see my other response. > /////////////////////////////// > but I have another question now: > I need two windows (one will be for AUImanager) > I wrote this. It does not work as I expected and also crashes on closing > ///////////////////////////////////////////// > require("wx") > > frame = nil > -- Generate a unique new wxWindowID > local ID_IDCOUNTER = wx.wxID_HIGHEST + 1 > function NewID() > ID_IDCOUNTER = ID_IDCOUNTER + 1 > return ID_IDCOUNTER > end > function main() > > -- create the frame window > frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "wxLua Very Minimal Demo", > wx.wxDefaultPosition, wx.wxSize(450, 450), > wx.wxDEFAULT_FRAME_STYLE ) > panel = wx.wxPanel(frame, wx.wxID_ANY) > paneltop = wx.wxPanel(panel, wx.wxID_ANY) > panelbottom = wx.wxPanel(panel, wx.wxID_ANY) > > paneltopSizer = wx.wxBoxSizer( wx.wxHORIZONTAL ) > panelbottomSizer = wx.wxBoxSizer( wx.wxHORIZONTAL ) > > > for i=1,3 do > local cc=wx.wxStaticText(paneltop, wx.wxID_ANY, "top "..i, > wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) > paneltopSizer:Add(cc,0,wx.wxGROW) > end > > for i=1,3 do > local cc=wx.wxStaticText(panelbottom, wx.wxID_ANY, "bottom "..i, > wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) > panelbottomSizer:Add(cc,0,wx.wxGROW) > end > paneltop:SetSizer(paneltopSizer); > paneltopSizer:SetSizeHints(paneltop); > > panelbottom:SetSizer(panelbottomSizer); > panelbottomSizer:SetSizeHints(panelbottom); > > > panelSizer = wx.wxBoxSizer( wx.wxVERTICAL ) Don't add the child panel's sizers since the child panels already manage them. > panelSizer:Add(paneltopSizer,1,wx.wxGROW) > panelSizer:Add(panelbottomSizer,1,wx.wxGROW) Add the child panels themselves and the panelSizer will check if the child panels have sizers of their own to perform the layout. panelSizer:Add(paneltop,1,wx.wxGROW) panelSizer:Add(panelbottom,1,wx.wxGROW) > panel:SetSizer(panelSizer); > panelSizer:SetSizeHints(panel); > -- show the frame window > frame:Show(true) > end > > main() > > wx.wxGetApp():MainLoop() This was tough to find, but by remming out parts I was able to find where the code that caused the crash came from. Regards, John |
From: John L. <jla...@gm...> - 2013-01-17 05:32:55
|
On Mon, Jan 14, 2013 at 1:08 PM, Victor Bombi <so...@te...> wrote: > Hello, > > Cant get this test with sizers and wxCollapsiblePane to work!! > What am I doing wrong > ////////////// > require("wx") > > frame = nil > > function main() > > -- create the frame window > frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "wxLua Very Minimal Demo", > wx.wxDefaultPosition, wx.wxSize(450, 450), > wx.wxDEFAULT_FRAME_STYLE ) > panel = wx.wxPanel(frame, wx.wxID_ANY) > panelSizer = wx.wxBoxSizer( wx.wxVERTICAL ) > collaps = {} > ---[[ > for i=1,3 do > collaps[i] = wx.wxCollapsiblePane(panel, wx.wxID_ANY, "efecto"..i, > wx.wxDefaultPosition, > wx.wxSize(20,20)) > panelSizer:Add(collaps[i], 0, wx.wxGROW + wx.wxALL, 5); > local wincolap = (collaps[i]):GetPane() > paneSz = wx.wxBoxSizer(wx.wxVERTICAL); > local cc=wx.wxStaticText(wincolap, wx.wxID_ANY, "vadsfklj "..i, > wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) > paneSz:Add(cc, 1, wx.wxGROW + wx.wxALL, 2); > wincolap:SetSizer(paneSz); > paneSz:SetSizeHints(wincolap); > --panelSizer:Add(paneSz, 0, wx.wxALL, 0) -- Add this to force the layout to be recalculated. -- I'm not sure why this is not automatic... I have only used this control once and it worked without this. collaps[i]:Connect(wx.wxID_ANY, wx.wxEVT_COMMAND_COLLPANE_CHANGED, function(event) collaps[i]:GetContainingSizer():Layout() end) > end > --]] > last = wx.wxStaticText(panel, wx.wxID_ANY, "last 1", > wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) > panelSizer:Add(last,0) > last2 = wx.wxStaticText(panel, wx.wxID_ANY, "last 2", > wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) > panelSizer:Add(last2,0) > > panel:SetSizer(panelSizer); > panelSizer:SetSizeHints(panel); > -- show the frame window > frame:Show(true) > end > > main() > > wx.wxGetApp():MainLoop() > Hope that helps, John |
From: Victor B. <so...@te...> - 2013-01-16 17:58:40
|
Auto answering. I made a function (Collapsible) for getting what I wanted //////////////////////// require("wx") frame = nil -- Generate a unique new wxWindowID local ID_IDCOUNTER = wx.wxID_HIGHEST + 1 function NewID() ID_IDCOUNTER = ID_IDCOUNTER + 1 return ID_IDCOUNTER end function main() -- create the frame window frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "wxLua Very Minimal Demo", wx.wxDefaultPosition, wx.wxSize(450, 450), wx.wxDEFAULT_FRAME_STYLE ) panel = wx.wxPanel(frame, wx.wxID_ANY) panelSizer = wx.wxBoxSizer( wx.wxVERTICAL ) ---[[ for i=1,3 do local colsiz = Collapsible(panel,panelSizer,"collap "..i) local cc=wx.wxStaticText(panel, wx.wxID_ANY, "vadsfklj "..i, wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) colsiz:Add(cc,0) panelSizer:Hide(colsiz,true) end --]] last = wx.wxStaticText(panel, wx.wxID_ANY, "last 1", wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) panelSizer:Add(last,1) last2 = wx.wxStaticText(panel, wx.wxID_ANY, "last 2", wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) panelSizer:Add(last2,1) panel:SetSizer(panelSizer); panelSizer:SetSizeHints(panel); -- show the frame window frame:Show(true) end function Collapsible(parent,parentSizer,texto) local panelSizer = wx.wxBoxSizer( wx.wxVERTICAL ) local ids = NewID() local button = wx.wxToggleButton(parent,ids,texto,wx.wxDefaultPosition,wx.wxSize(40,20)) button:SetFont(wx.wxSMALL_FONT) panelSizer:Add(button, 0, wx.wxALL, 0); local collapSizer = wx.wxBoxSizer( wx.wxVERTICAL ) parent:Connect(ids, wx.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, function(event) if button:GetValue() then panelSizer:Show(collapSizer,true) else panelSizer:Hide(collapSizer,true) end parent:Layout() end) panelSizer:Add(collapSizer, 0, wx.wxALL, 0); parentSizer:Add(panelSizer,0) panelSizer:Hide(collapSizer,true) return collapSizer end main() wx.wxGetApp():MainLoop() /////////////////////////////// but I have another question now: I need two windows (one will be for AUImanager) I wrote this. It does not work as I expected and also crashes on closing ///////////////////////////////////////////// require("wx") frame = nil -- Generate a unique new wxWindowID local ID_IDCOUNTER = wx.wxID_HIGHEST + 1 function NewID() ID_IDCOUNTER = ID_IDCOUNTER + 1 return ID_IDCOUNTER end function main() -- create the frame window frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "wxLua Very Minimal Demo", wx.wxDefaultPosition, wx.wxSize(450, 450), wx.wxDEFAULT_FRAME_STYLE ) panel = wx.wxPanel(frame, wx.wxID_ANY) paneltop = wx.wxPanel(panel, wx.wxID_ANY) panelbottom = wx.wxPanel(panel, wx.wxID_ANY) paneltopSizer = wx.wxBoxSizer( wx.wxHORIZONTAL ) panelbottomSizer = wx.wxBoxSizer( wx.wxHORIZONTAL ) for i=1,3 do local cc=wx.wxStaticText(paneltop, wx.wxID_ANY, "top "..i, wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) paneltopSizer:Add(cc,0,wx.wxGROW) end for i=1,3 do local cc=wx.wxStaticText(panelbottom, wx.wxID_ANY, "bottom "..i, wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) panelbottomSizer:Add(cc,0,wx.wxGROW) end paneltop:SetSizer(paneltopSizer); paneltopSizer:SetSizeHints(paneltop); panelbottom:SetSizer(panelbottomSizer); panelbottomSizer:SetSizeHints(panelbottom); panelSizer = wx.wxBoxSizer( wx.wxVERTICAL ) panelSizer:Add(paneltopSizer,1,wx.wxGROW) panelSizer:Add(panelbottomSizer,1,wx.wxGROW) panel:SetSizer(panelSizer); panelSizer:SetSizeHints(panel); -- show the frame window frame:Show(true) end main() wx.wxGetApp():MainLoop() Best Regards and thanyou for reading Victor Bombi |
From: Victor B. <so...@te...> - 2013-01-14 18:09:10
|
Hello, Cant get this test with sizers and wxCollapsiblePane to work!! What am I doing wrong ////////////// require("wx") frame = nil function main() -- create the frame window frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "wxLua Very Minimal Demo", wx.wxDefaultPosition, wx.wxSize(450, 450), wx.wxDEFAULT_FRAME_STYLE ) panel = wx.wxPanel(frame, wx.wxID_ANY) panelSizer = wx.wxBoxSizer( wx.wxVERTICAL ) collaps = {} ---[[ for i=1,3 do collaps[i] = wx.wxCollapsiblePane(panel, wx.wxID_ANY, "efecto"..i, wx.wxDefaultPosition, wx.wxSize(20,20)) panelSizer:Add(collaps[i], 0, wx.wxGROW + wx.wxALL, 5); local wincolap = (collaps[i]):GetPane() paneSz = wx.wxBoxSizer(wx.wxVERTICAL); local cc=wx.wxStaticText(wincolap, wx.wxID_ANY, "vadsfklj "..i, wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) paneSz:Add(cc, 1, wx.wxGROW + wx.wxALL, 2); wincolap:SetSizer(paneSz); paneSz:SetSizeHints(wincolap); --panelSizer:Add(paneSz, 0, wx.wxALL, 0) end --]] last = wx.wxStaticText(panel, wx.wxID_ANY, "last 1", wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) panelSizer:Add(last,0) last2 = wx.wxStaticText(panel, wx.wxID_ANY, "last 2", wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) panelSizer:Add(last2,0) panel:SetSizer(panelSizer); panelSizer:SetSizeHints(panel); -- show the frame window frame:Show(true) end main() wx.wxGetApp():MainLoop() |
From: SourceForge.net <no...@so...> - 2013-01-05 20:10:25
|
Bugs item #3599618, was opened at 2013-01-05 12:10 Message generated for change (Tracker Item Submitted) made by sergo2002 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3599618&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 Resolution: None Priority: 5 Private: No Submitted By: MaxWell (sergo2002) Assigned to: Nobody/Anonymous (nobody) Summary: Some functions are absent Initial Comment: Good day! I'm trying to call functions wxSizer:Replace() wxScrolledWindow:GetBestVirtualSize() But they don't work. Help please. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3599618&group_id=140042 |
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 |