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 2 results of 2

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.

Showing 2 results of 2

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