"Enclosed there is a patch for the FL library that solves a problem
overwriting the status bar if a bar is expanded.
Cause of this is the calculation of the new window height which may be less
than 0 in some cases. In my test a value of -1 caused the window default
height to be set which was larger than the space available, therefore the
status bar was overwritten."
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Made wxSizer child list typesafe. I've not added the wxList implicit
conversion kludge yet, let's see who complains first perhaps..
Deprecated wxSizer::{G,S}etOption in favour of {G,S}etProportion in line
with the parameter name change in the docs.
Added {G,S}etSpacer consistent with the accessors for windows/sizers.
Made all wxSizer index parameters size_t -- we support no sensible
interpretation for negative indexes in them. Hopefully this will
cause no real problems, but code doing (eg. Remove( 0 )) will need
to change to use 0u to resolve the ambiguity with overloaded members.
This is probably a Good Thing though, ymmv.
s/FALSE/false/g ; s/TRUE/true/g ; s/wxASSERT/wxASSERT_MSG/g in sizer.{cpp,h}
Fixed (I hope) the brokenness in wxSizer::Show -- I have no code to test
this yet, so it's a blind change, but spacers should now be hidden correctly
instead of ignored, and it should be properly reversable over multiple
calls now too.
removed pointless private scoping around DECLARE_CLASS macros.
Replace 0's I added previously with NULL -- not like that will end the
email thread either..
Added Add( wxSizerItem * ) & co. There are probably a couple of other
places we can usefully do something like this too. Stopped short of
refactoring everything to raise some issues about sizer method recursion
on -dev.
Updated wxSizer docs some more, they are still incomplete but getting
better.
wrapped KeyCode in wxDEPRECATED, converted all (gtk build) instances
to GetKeyCode. There may be a few left for other ports.
Fixed a couple of other random compile warnings along the way.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
In the current contrib/fl implementation, all control bars
in the frame layout either float or they don't. I added
code to allow the bar floating to be determined on a bar-
by-bar basis. That is, this patch enables some control
bars to float while keeping others locked.
Kevin Yochum
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1) There is a problem
in that floating frames are not currently supported
with !mRealTimeUpdates. We wrote a patch to correct
this problem. You will find it attached to this
posting.
Here is a description of what was changed and why. In
cbBarDragPlugin::ShowHint(), SetBarState is called
every time mpCurPane changes. This is correct.
However, this also happens every time, even if
mRealTimeUpdates is false. The state should not be
changed during the drag operation if mRealTimeUpdates
is off. This is corrected in this patch. Code was
also added in cbBarDragPlugin::OnLButtonUp() to
actually do the state changing, only if
mRealTimeUpdates is off. Normally, this is performed
in ShowHint if mRealTimeUpdates is on.
I also took the liberty of changing the drag cursor
back to an arrow. This is the way it is in MS Visual
C++, and it looks way better. The MoveWindow cursor
looks terrible, IMHO. When FL gets the embedded
cursor code working, we can switch back to a hand or
something else.
2) This time we have
discovered a crash bug in FL. The steps to reproduce this
bug are as follows:
1. Open up a pane, dock it.
2. Click the Expand button (arrow button) in the
frame hints portion
3. Click it again to Collapse the pane.
4. Now click the close button of the pane. Crash.
We investigated what was causing this problem, and it turns
out that the button state never gets unset. Once a button
is pressed, it is always pressed. Thus, when the expand/
collapse button is pressed, and then the close button is
pressed, the pane will close, but then FL will also try to
expand or collapse the pane as well, because it thinks that
the expand/collapse button was set.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775