Vadim Zeitlin
be9b0663d9
reworked vertical scrolling code to correspond better to what I think is correct (horizontal case is unchanged)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-12 08:35:53 +00:00
Julian Smart
6aa89a22b8
Fixed copyrights and licence spelling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 11:55:54 +00:00
Ron Lee
150c8d89c7
Fixed bug in FlexGridSizer mods that prevented them from ever shrinking.
...
Reverted the earlier SetScrollbars patch and fixed a bug in GetVirtualSize
that was hopefully the real cause of all the preceding woe.
Added a comment and a kludge for a most unusual bug manifesting in the
scrollsub sample. If it is resized quickly size events appear to get lost
and the scrollbar is set incorrectly. Adding an extra call to
AdjustScrollbars masks the problem, though its clearly superfluous since
the FitInside above already calls it. This seems to be a brand new problem
(on both Gtk and msw) as of some time prior to this patch and it should be
looked into further.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-27 09:02:58 +00:00
Mattia Barbon
4995ca8037
Remove use of deprecated KeyCode accessor.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-12 13:52:12 +00:00
Vadim Zeitlin
22f3361e1c
use DECLARE_NO_COPY_CLASS() where applicable (patch 633384)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-02 23:38:11 +00:00
Julian Smart
0156594543
Improved SetScrollbars fix using client size and max of window and virtual
...
sizes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-27 14:17:55 +00:00
Julian Smart
d0604192a5
Don't pass zero width or height to SetVirtualSize or layout is
...
messed up.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-23 23:42:13 +00:00
Julian Smart
03d1ae1799
Applied patch [ 651649 ] Scrollbar not updated without resizing
...
I always wondered why the scrollbar of the listbox or
the log window (textctrl) never showed a thumb in the
control sample while the combobox does. The
AdjustScrollbars gets called through a size event and
this happens before the listbox (textctrl) can set the
values for the scrollbar. So always an empty scrollbar
is shown. This patch calls AdjustScrollbars at the end
of SetScrollbars in scrlwing.cpp.
I'm not sure if this is the best fix but it works
nicely. I've only tested it with wxUniv but it should
be okay in any generic case.
(applied for __WXUNIVERSAL__ only for now -- JACS)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-10 21:50:11 +00:00
Vadim Zeitlin
2b5f62a0b2
merged 2.4 branch into the trunk
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Robin Dunn
9b9337da0c
Moved the check for page scrolling with the wheel into wxMouseEvent so
...
it wouldn't have to be duplicated everywhere.
Also fixed wxSTC so it can handle wheel page scrolling too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-19 21:11:31 +00:00
Robin Dunn
4b056ef54f
Fix for mousewheel events when it is set to page mode instead of lines.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-19 19:36:53 +00:00
Vadim Zeitlin
dc429f89a6
fixed wxScrolledWindow::SetScrollbars() which was broken by the virtual size changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-07 23:36:36 +00:00
Julian Smart
9b66c26ae7
Fixed wxMotif compilo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-22 10:32:41 +00:00
Ron Lee
566d84a7c3
Added knowledge of virtual size to wx(Scrolled)Windows, they can now
...
manage their own scrollbars with the help of a sizer or other user
clues (SetVirtualSizeHints) without the need for an ancillary container.
Added SetSizerAndFit convenience method.
SetSizer now enables/disables AutoLayout automagically.
Logic bugfix for scrollsub sample.
Syntax bugfix in parser.y.
Compiler warning fix in textctrl.cpp.
Modified Files:
docs/latex/wx/scrolwin.tex docs/latex/wx/sizer.tex
docs/latex/wx/window.tex include/wx/scrolwin.h
include/wx/sizer.h include/wx/window.h
include/wx/generic/scrolwin.h include/wx/gtk/scrolwin.h
samples/scrollsub/scrollsub.cpp src/common/parser.y
src/common/sizer.cpp src/common/wincmn.cpp
src/generic/scrlwing.cpp src/gtk/scrolwin.cpp
src/msw/textctrl.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-19 22:12:38 +00:00
Julian Smart
ee018b89b7
wxScrolledWindow::GetVirtualSize now returns client size
...
if scrolling parameters have not been set. This makes Layout()
work again for scrolled windows.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-10 18:15:17 +00:00
Václav Slavík
8c2f379786
added Calc(Un)ScrolledPosition taking wxPoint
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-17 14:13:14 +00:00
Vadim Zeitlin
7152f0c68d
restore Robin's code (reverted previous commit)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-16 00:06:33 +00:00
Julian Smart
95d60b2429
Added sizer.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-15 12:42:54 +00:00
Robin Dunn
3048629765
Give wxScrolledWindow its own Layout method that takes into account
...
the virtual size and scrolled offset of the window.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-15 00:21:47 +00:00
Vadim Zeitlin
0cf5b09998
got rid of wxWindow::m_lDlgCode - now wxWANTS_CHARS style should work for all windows, even the native controls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-06 00:58:11 +00:00
Vadim Zeitlin
74f6bbf951
replaced DeleteEvtHandler with a call to RemoveEventHandler
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-25 16:01:43 +00:00
Vadim Zeitlin
248d771ce4
fixed memory leak when SetTargetWindow() was called more than once and made DeleteEvtHandler() more robust
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-24 14:14:11 +00:00
Vadim Zeitlin
5f3286d17d
more fixes to target window scrolling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-02 15:57:36 +00:00
Vadim Zeitlin
af4088f1be
fixed event processing for the target window
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-02 15:04:38 +00:00
Julian Smart
13ff9344d6
Attempted to fix splittree problem by not pushing event handler
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-01 12:26:27 +00:00
Vadim Zeitlin
ff18659103
fixed the bug with the order of 2 size events when the scrollbar[s] (dis)appear in wxScrolledWindow
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-06 02:22:26 +00:00
Vadim Zeitlin
993cfa8757
fix for event processing in wxScrollHelper
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-18 12:39:18 +00:00
Vadim Zeitlin
349efbaa89
implemented (untested) work around for wxScrolledWindow painting bug
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-13 15:42:29 +00:00
Robin Dunn
ac6f6ffccf
Applied patch #445873
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-30 21:37:56 +00:00
Julian Smart
b6b85bdccb
Added fix to send scroll messages from mouse wheel instead of scrolling directly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-27 10:07:46 +00:00
Vadim Zeitlin
2feed0044e
blind fix for wxScrolledWindow problem
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-17 22:01:00 +00:00
Robert Roebling
9a26801874
Corrected wxScrolledWindow's OnSize behaviour.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-14 18:11:52 +00:00
Vadim Zeitlin
a85c155217
fixed scrollbar refresh
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-10 00:48:54 +00:00
Julian Smart
9806a47c30
Various wxMotif fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-09 13:14:28 +00:00
Vadim Zeitlin
39c869a6cd
scrolling with kbd generates scroll events too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-09 12:23:53 +00:00
Vadim Zeitlin
3379ed3789
tons of fixes for wxGTK/Univ - seems to work, more or less, now
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-03 19:38:19 +00:00
Vadim Zeitlin
3a8c693aea
renamed scrolwin file - no other way to make wxGTK/Univ compile
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-03 18:14:22 +00:00