[wx-dev] [ wxwindows-Bugs-1945227 ] wxCollapsiblePane does not work
in multiple notebook tabs
SourceForge.net
noreply at sourceforge.net
Fri May 2 15:50:13 PDT 2008
Bugs item #1945227, was opened at 2008-04-17 23:53
Message generated for change (Comment added) made by rubi13133
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1945227&group_id=9863
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: Generic
Group: Must fix
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: rubi13133 (rubi13133)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxCollapsiblePane does not work in multiple notebook tabs
Initial Comment:
I provide a simple project created in Dialog Blocks that shows the bug.
When you use wxCollapsiblePane it suppose to stretch the containing window when expanding and collapsing. However, when creating multiple collapsible pane items under two different tabs of a wxNotebook, the panes that are under the tab that is bigger (on the axis of the wxBoxSizerV/H) are well behaved, but switching to the other tabs shows that the panes that are on that tab override each other and distort the GUI.
The Zip file contains all the files needed to reproduce the bug. In fact there is no need to compile it, only to press F5 (test GUI shortcut) in Dialog Blocks and test the tabs.
----------------------------------------------------------------------
>Comment By: rubi13133 (rubi13133)
Date: 2008-05-03 01:50
Message:
Logged In: YES
user_id=1325833
Originator: YES
Ok!
I just created a really really small demo, the bug seems to happen even in
this very simple example:
Clicking on the first collapsible pane on the first tab, causes the panel
to expand down-wards, as should happen. However, moving to the next tab
(wxPanel) and clicking on the first (actually any of them...) collapsible
pane does not move the lower collapsible pane down, and in a more complex
example the child objects of the pane are painted over the other panes.
I hope this helps, please let me know if there's something else that is
needed to fix this.
File Added: wxCollapsiblePane_bug_demo.zip
----------------------------------------------------------------------
Comment By: rubi13133 (rubi13133)
Date: 2008-04-18 10:57
Message:
Logged In: YES
user_id=1325833
Originator: YES
No need to look at the code at all! it is un interesting,
(wxCollapsiblePane is implemented in generic/collpaneg.cpp ) It took me
exactly 1 minute to draw the windows in the Dialog blocks editor.
All I wanted is to show, is the problem when in two panels of a notebook
there are multiple collapsible panes (it sounds complicated :)) but not
realy, it's just containers that I added dummy buttons to, so they grow in
space vertically.
When you open the demonstration (test it in DialogBlocks or run it, in
both cases the same thing happen) you can see that when one panel has all
the collapsible panes expanded (the panel is expanded). On the other panel
things are garbaged.
I would like to help fixing it, but it's a lot of wxSizer code that
naturally associated with allot of all other components, and I admit I
still didn't dived into the sources at that level yet to be able to
understand what is wrong with the wxCollapsible pane, although it looks
like a simple bug.
I am going to try and understand what to do, but would apreciate if
someone who is more into the code could look at it.
Thanks
----------------------------------------------------------------------
Comment By: Vadim Zeitlin (vadz)
Date: 2008-04-18 03:26
Message:
Logged In: YES
user_id=71618
Originator: NO
Unfortunately I don't think anybody is going to have time to look at the
code of an entire complicated application. It would be really much more
helpful if you could reproduce the bug in the collpane sample, i.e. make
minimal changes to the sample code required to see the bug and send us a
patch.
Could you please do it? Thanks in advance!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1945227&group_id=9863
More information about the wx-dev
mailing list