Commit Graph

465 Commits

Author SHA1 Message Date
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
Vadim Zeitlin
c2569f41b1 fixed icon drawing when they have different sizes (patch 554973)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-28 16:44:33 +00:00
Vadim Zeitlin
943f6ad3d6 unselected the current item when unfocusing it in a single selection list control (patch 540818)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-28 16:30:24 +00:00
Vadim Zeitlin
050e7ed73b added missing wxListItem copy ctor to wxMSW, moved wxListItem to the header
to avoid duplicating it in wxMSW and the generic versions


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-08 22:29:57 +00:00
Gilles Depeyrot
3475a005d6 implemented missing copy constructor (needed for non trivial member)
corrected warnings when compiling with -Wall -W


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-08 13:55:36 +00:00
Ron Lee
5b98eb2fa6 Added {S,G}etItem{Text,Background}Colour methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-24 20:31:46 +00:00
Robin Dunn
a77ec46ddc Added sending of column dragging events to the generic wxListCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-03 20:26:29 +00:00
Václav Slavík
d027179b48 use Calc(Un)ScrolledPosition instead of wxClientDC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-17 14:13:35 +00:00
Václav Slavík
acf4d8587a make it possible to have empty lines in wxListCtrl
in report mode (mandatory for wxEditableListBox)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-16 19:34:15 +00:00
Vadim Zeitlin
ae409cb80e update focus rectangle width when the columns are being added/removed on the fly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-13 15:41:41 +00:00
Vadim Zeitlin
62313c2788 right clicking outside any column sets the column in the list event to -1, not the last column
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-11 12:32:56 +00:00
Gilles Depeyrot
5a1cad6ea4 wxArray<T> macros have been changed to fix runtime problems under 64 bit
architectures. The base class is now implemented once for each needed
primitive type in order to avoid invalid reference casts. Macros are
provided to implement new arrays using these primitive base arrays.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-06 06:31:34 +00:00
Václav Slavík
ddba340ddf made generic wxListCtrl work with well-behaved ports (wxGTK hack still in place)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-24 00:14:18 +00:00
Robert Roebling
afbe906abd Some work on GTK focus handling and events.
Removed some code #ifdeffed for GTK from
    wxListCtrl.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-23 18:59:46 +00:00
Vadim Zeitlin
072da98f10 don't crash in SetFocus()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-19 14:21:49 +00:00
Robert Roebling
07215d86e0 Removed accidentally left in debug code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-17 22:19:23 +00:00
Václav Slavík
a6d57d0388 fix for focus handling in generic wxListCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-17 14:51:52 +00:00
Robert Roebling
8ac7c50924 wxX11:
Made timer compile and maybe work.
    Fixed display bug in wxListCtrl.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-16 10:59:55 +00:00
Václav Slavík
f16ba4e6fa don't use GTK specific code in wxListCtrl when building wxUniv
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-26 00:23:02 +00:00
Vadim Zeitlin
903506828b fixes for the compilation warnings with Sun CC:
1. some fixes for "String literal to char * conversion" warnings (many
   more left in the *.xpm files)
2. fixes for "assignment of function to extern "C" function"
3. a few other miscellaneous ones


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-09 12:49:12 +00:00
Václav Slavík
a756f21001 use the new wxSystemSettings API everywhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-08 23:53:01 +00:00
Robert Roebling
5d68475643 Further correction to wxListCtrl line wrapping.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-06 14:39:37 +00:00
Robert Roebling
bf632eddcd Recorrected calculation of client size in wxListCtrl.
Also added comments on why this is correct.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-05 15:58:52 +00:00
Robert Roebling
dd5a32cc2d Changed semantics of clicking beside the text control
when editing a label. This now accepts the input.
 My attempt to make the focus return to the owning
   tree and list control window failed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-09 21:15:56 +00:00
Vadim Zeitlin
ae0d8c1445 fix for the crash when many listctrl items change state
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-09 13:35:48 +00:00
Vadim Zeitlin
33b7a5491f removed unneeded include from the header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-26 14:38:02 +00:00
Vadim Zeitlin
0ded6bb695 changes to match listctrl.h changes (forgot to commit yesterday, sorry)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-21 16:43:13 +00:00
Vadim Zeitlin
0ddefeb07f added wxEVT_COMMAND_LIST_ITEM_FOCUSED event and implemented it for the generic version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-16 16:31:17 +00:00
Vadim Zeitlin
c5c528fc7f implemented Freeze/Thaw() for the generic listctrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-03 17:06:29 +00:00
Vadim Zeitlin
87948f22dd minor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-30 13:56:40 +00:00
Vadim Zeitlin
85cdcb7a20 fixed wxListCtrl::DeleteAllColumns() in the generic listctrl (patch 470251)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-15 22:55:21 +00:00
Vadim Zeitlin
c5b7bb59ec fix to avoid internal compiler error with gcc 2.95.2 on Alpha
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-12 14:16:20 +00:00
Vadim Zeitlin
37fa909534 refresh the current item when the focus is gained/lost
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-08 12:43:52 +00:00
Vadim Zeitlin
477243897a fix for focus event sending
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-03 17:44:56 +00:00
Vadim Zeitlin
bde9072f68 reduced flicker when switching focus to/from the report list ctrl under wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-03 17:01:29 +00:00
Vadim Zeitlin
651d7a1ff8 set mouse position for COL_CLICK event
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-06 20:07:32 +00:00
Vadim Zeitlin
0a816d9581 implemented column images for the generic version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-03 15:09:56 +00:00
Vadim Zeitlin
11358d3976 added a bunch of new wxListCtrl messages: column right click and
start/continue/end dragging column divider


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-01 01:01:51 +00:00