Vincent Favre-Nicolin
16 years ago
Hi,
I have a little problem with wx versions since 2.8.8 - the "When focus is
set to wxScrolledWindow child, scroll it into view" feature is turning out to
be very annoying in some circumstances.
This is related to bug #9563 (http://trac.wxwidgets.org/ticket/9563).
The auto-scrolling works correctly for whenever there are only small
sub-windows as children of a wxScrolledWindow. However if a group of controls
are grouped together as a wxWindow (which is one children of the
wxScrolledWindow) it behaves strangely. This is probably true whenever a
children window is large enough not to fit in the scrolled window.
I have attached an example, which can be compiled by replacing minimal.cpp.
This was tested with wxGTK, but I've seen the same behaviour under windows
and MacOSX.
In this example there are 3 independent buttons and 3 others that are
embedded in a sub-window (SubWin)
Here are a few undesired ways the window is auto-scrolled:
1) launch the minimal window , click right *below* the "SubButton1": the
window scrolls down to the bottom of SubWin
2) click on sub-button 1: the window scrolls down to the bottom of SubWin
3) Click on sub-button 1. Then resize the window to a smaller size and repeat.
Each time resizing the window will alternatively re-scroll to the bottom or
the top of SubWin...
4) launch the minimal window. Click on sub-button 1, or below sub-button 2
(this puts the SubWin in focus). Then move the window by click&drag the top
of the window frame. Every time the window is moved the window will
alternatively re-scroll to the bottom or the top of SubWin...
While I'm sure there are good reasons for auto-scrolling (when scrolling a
little to move a smallcontrol in view), in circumstances like above it does
not work well. So I'd very much like a way to de-activate that feature.
Being able to deactivate it is particularly important as it was added to a
minor release (2.8.x) and linux distributions are now shipping with 2.8.9 - I
have to find a way around this - going back to 2.6 is not an option.
regards,
Vincent
I have a little problem with wx versions since 2.8.8 - the "When focus is
set to wxScrolledWindow child, scroll it into view" feature is turning out to
be very annoying in some circumstances.
This is related to bug #9563 (http://trac.wxwidgets.org/ticket/9563).
The auto-scrolling works correctly for whenever there are only small
sub-windows as children of a wxScrolledWindow. However if a group of controls
are grouped together as a wxWindow (which is one children of the
wxScrolledWindow) it behaves strangely. This is probably true whenever a
children window is large enough not to fit in the scrolled window.
I have attached an example, which can be compiled by replacing minimal.cpp.
This was tested with wxGTK, but I've seen the same behaviour under windows
and MacOSX.
In this example there are 3 independent buttons and 3 others that are
embedded in a sub-window (SubWin)
Here are a few undesired ways the window is auto-scrolled:
1) launch the minimal window , click right *below* the "SubButton1": the
window scrolls down to the bottom of SubWin
2) click on sub-button 1: the window scrolls down to the bottom of SubWin
3) Click on sub-button 1. Then resize the window to a smaller size and repeat.
Each time resizing the window will alternatively re-scroll to the bottom or
the top of SubWin...
4) launch the minimal window. Click on sub-button 1, or below sub-button 2
(this puts the SubWin in focus). Then move the window by click&drag the top
of the window frame. Every time the window is moved the window will
alternatively re-scroll to the bottom or the top of SubWin...
While I'm sure there are good reasons for auto-scrolling (when scrolling a
little to move a smallcontrol in view), in circumstances like above it does
not work well. So I'd very much like a way to de-activate that feature.
Being able to deactivate it is particularly important as it was added to a
minor release (2.8.x) and linux distributions are now shipping with 2.8.9 - I
have to find a way around this - going back to 2.6 is not an option.
regards,
Vincent
--
Vincent Favre-Nicolin
CEA Grenoble/INAC/SP2M http://inac.cea.fr
Univ. Joseph Fourier (Grenoble) http://www.ujf-grenoble.fr
ObjCryst & Fox http://objcryst.sf.net/Fox
Vincent Favre-Nicolin
CEA Grenoble/INAC/SP2M http://inac.cea.fr
Univ. Joseph Fourier (Grenoble) http://www.ujf-grenoble.fr
ObjCryst & Fox http://objcryst.sf.net/Fox