Vadim Zeitlin
ab96d680eb
adjust m_current when inserting items in the control (patch 799937)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 22:59:02 +00:00
Vadim Zeitlin
86351e4a9d
fix for calculating the header window height (patch 805791)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 22:52:47 +00:00
Vadim Zeitlin
94dd23aebc
align the items correctly with wxLC_ALIGN_TOP
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 21:10:22 +00:00
Vadim Zeitlin
13602ebd04
added support for wxLC_ALIGN_LEFT/TOP
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 20:40:26 +00:00
Vadim Zeitlin
eb6c4508c9
account for the scrollbars in GetViewRect()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 19:52:46 +00:00
Vadim Zeitlin
f58fc1407b
compilation fix after last check in
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 16:12:05 +00:00
Vadim Zeitlin
5db8d758b8
fixed GetItemSpacing() inconsistency by deprecating the old function and adding a new, easier to use, overload
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 16:06:27 +00:00
Vadim Zeitlin
11ebea162a
added wxListCtrl::GetViewRect()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 15:58:41 +00:00
Julian Smart
f8252483ec
Applied patch [ 803473 ] wxListCtrl header height bugfix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-11 15:38:38 +00:00
Vadim Zeitlin
1e54be64fd
ensure that GetItemRect() returns the real rect and not 0 even if it's called before first OnIdle()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-21 23:08:10 +00:00
Václav Slavík
14f355c2b5
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46:53 +00:00
Vadim Zeitlin
61fef19b85
warnings (and some errors) fixes for wxUniv DLL build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-03 20:58:56 +00:00
Vadim Zeitlin
9c7f49f569
added wxRendererNative to be used by the generic controls for rendering platfomr-specific parts
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-20 17:52:26 +00:00
Jouk Jansen
8f5a042b12
Committing in .
...
OpenVMS compile issues
Modified Files:
wxWindows/setup.h_vms wxWindows/src/generic/listctrl.cpp
wxWindows/utils/dialoged/src/winprop.cpp
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-11 10:50:28 +00:00
Mattia Barbon
222ed1d678
STL-ification patch for wxMSW and wxGTK.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 19:55:12 +00:00
Vadim Zeitlin
df6f82f048
allow adding/removing columns dynamically (based on patch 763540)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 15:51:47 +00:00
Julian Smart
5180055b69
OnIdle -> OnInternalIdle
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 17:15:09 +00:00
Robert Roebling
865864592a
Corrected wxTreeCtrl and wxListCtrl end_label_edit event behaviour.
...
wxListCtrl doesn't send this event when the editing was cancelled.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 11:24:52 +00:00
Vadim Zeitlin
2f1e3c464c
Refresh() didn't work as it wasn't passed to subwindows
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 11:19:10 +00:00
Vadim Zeitlin
ac53090cb7
don't ignore wxLC_NO_HEADER style when inserting first column
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 21:58:55 +00:00
Vadim Zeitlin
c71d3313a4
extracted wxSelectionStore in a separate file
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-11 10:49:53 +00:00
Vadim Zeitlin
a67e6e5438
generate wxEVT_COMMAND_LIST_INSERT_ITEM (patch 747070)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-03 10:46:08 +00:00
Robin Dunn
7e6874c014
Fix GetItemRect to offset by the header window, if present.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-08 02:17:52 +00:00
Vadim Zeitlin
e8c6a69c9d
set the index for BEGIN_DRAG events (patch 726308)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-01 19:38:42 +00:00
Robin Dunn
6d460f765d
Turn off all border styles for the inner window
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-08 22:24:14 +00:00
Václav Slavík
5175dbbd9f
fixed DrawTextFormatted to work in O(n) instead of O(n^2) if the text doesn't fit into the column
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-27 23:21:47 +00:00
Vadim Zeitlin
355f240724
respect Veto()ing the column resize events; added test for this in the sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 13:24:45 +00:00
Robin Dunn
ca7353de3a
Check the image height when calulating the line height. This allows
...
larger than normal images to be used.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-06 02:18:51 +00:00
Ron Lee
12a3f2275c
Deprecated wxSizer::Remove( wxWindow* ), s/Remove/Detach/ in most places.
...
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
2003-01-07 10:22:07 +00:00
Vadim Zeitlin
7379599933
compilation warning fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-05 16:20:32 +00:00
Vadim Zeitlin
e1e1272f20
implemented support for column label alignment (closes 215870)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-02 21:29:21 +00:00
Vadim Zeitlin
285013b384
avoid flicker when doing SetItem() in non report mode (slightly extended patch 647970)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-06 23:40: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
e7d073c376
Fixed some off-by-one and other issues with drawing the HRULE/VRULE
...
lines. Made the VRULEs line up with the column header splitter
lines.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-11 18:36:55 +00:00
Julian Smart
80020b62f9
Using wxImageListType instead of wxGenericImageList
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-28 09:31:29 +00:00
Julian Smart
f9ceab7ce6
Ditribution script mods;
...
Use wxImageList instead of wxGenericImageList where possible
in wxListCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-28 08:54:00 +00:00
Julian Smart
c29582d0b0
Applied patch [ 590247 ] Fix bad calculation of listctrl update.
...
In wxGenericListCtrl when removing single items a call to
RefreshAfter would cause bad things to happen in GTK/X11.
It would under certain circumstances put Xlib into an
exponential memory and cpu usage mode. Causing
eventual core dump but not before using all memory and
swap.
The problem is that RefreshAfter is passing a negative
height rectangle refresh to GTK/X11. This stems from a mixture
of using scrolled and unscrolled values to calculate the
update region.
This patch fixes the problem... by transforming to scrolled
values earlier. And also adds one optimization to not
update when the item is below the visible area.
Tested on GTK.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-08 09:15:03 +00:00
David Webster
cf4d0c5b0b
FALSE, not false
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-05 15:50:05 +00:00
Julian Smart
e81a301cbd
Added wx/listbase.h with wxListCtrl types, so we can
...
have wxGenericListCtrl available on all platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-30 19:04:18 +00:00
Julian Smart
93e8d870e8
Must include wx/listctrl.h unfortunately, for now
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-30 16:14:12 +00:00
Julian Smart
9cb0795323
More tweaks so wxGenericListCtrl only uses generic
...
components
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-30 16:01:35 +00:00
Vadim Zeitlin
229653c99e
fixed bug due to which all items in a virtual control stayed sometimes selected even after Clear()ing it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-29 18:29:44 +00:00
Mattia Barbon
b5a7cdc076
Rename wxGenericImageList to wxImageList in generic wxListCtrl, too.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-27 20:12:21 +00:00
Julian Smart
b31989e208
Added wxListCtrl to derive from wxGenericListCtrl,
...
ditto for wxImageList
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-22 23:03:03 +00:00
Julian Smart
3cd94a0d11
Applied patch [ 583922 ] Make generic/wxListCtrl avail. in WIN32
...
Generic wxListCtrl renamed to wxGenericListCtrl, wxImageList
renamed to wxGenericImageList, so they can be used on wxMSW
(Rene Rivera).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-22 08:51:49 +00:00
Vadim Zeitlin
904ccf5237
attempt to fix a rare crash which happens when changing the number of columns in a virtual list control
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-12 16:05:46 +00:00
Vadim Zeitlin
58c1c0965e
fixed handling of Ctrl-arrows movement which was unselecting the previously selected items incorrectly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-08 17:57:48 +00:00
Vadim Zeitlin
62d89eb4c9
applied the same fix for crashing if the END_EDIT event handler vetoes the event as for wxTreeCtrl; also added a few consts here and there
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-08 17:48:41 +00:00
Vadim Zeitlin
c020c47e00
fixed off-by-few-pixels error in horz scrollbar calculations (patch 575412)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-03 15:05:43 +00:00
Vadim Zeitlin
40c0880859
relayout the window after adding/removing the columns (fixes a SF bug I closed a long time ago -- but forgot to commit the fix)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-18 15:23:54 +00:00