Commit Graph

85 Commits

Author SHA1 Message Date
Kevin Ollivier
f0ed40adbf Add scrollbars if the columns exceed the horizontal space for the control, also, have SetColumnWidth store the value in the column's wxListItem.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-12 04:08:13 +00:00
Kevin Ollivier
b3aee70835 Switching to a keyed list for storing information about the column data in each row, so that columns need not be set sequentially. Also, a tweak for drawing colored backgrounds when wxLC_VRULES is set, and add a few guards before calling GetColumnInfo().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-12 01:01:05 +00:00
Kevin Ollivier
d2af7584c0 A more complete fix for the generic control border issue, a fix for getting/setting wxListItemAttr info for the native control, fixes for HitTest considering the column the 0 item, and for GetItemRect being one off in virtual mode. Also a fix for the function call when using a custom sort routine.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-11 05:41:12 +00:00
Kevin Ollivier
1934a64e10 Fix typo with adding wxNO_BORDER to the native control.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-10 20:55:45 +00:00
Kevin Ollivier
ba3241e643 Sizing and positioning fixes for generic control.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 21:38:36 +00:00
Vadim Zeitlin
0ed77610cc removed unused variable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 21:18:12 +00:00
Kevin Ollivier
7ac21a6761 Adding label editing to native OS X listctrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 19:54:08 +00:00
Kevin Ollivier
a6c82d64ce Sizing fixes for generic control.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-02 18:17:24 +00:00
Kevin Ollivier
3ce16a8e02 Fixing icon drawing and implementing HitTest and GetItemRect for native OS X list ctrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 04:00:19 +00:00
Kevin Ollivier
9034707197 Explicitly forward non-command events along to the native control first.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 23:38:15 +00:00
Robin Dunn
b80e3a2a4f fixed compile error (jump to label bypasses initialization, or
something like that...)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-26 16:19:36 +00:00
Kevin Ollivier
5b2c144640 Adding virtual wxListCtrl impl of GetItem.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-26 03:01:38 +00:00
Kevin Ollivier
e9a0cc4b72 Adding support for item font/style/color customization, unfortunately, it does not work with wxLC_EDIT_LABELS due to a limitation in the native control. Also fire activate events, and fix some event object/id mismatches when using the generic list ctrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-25 05:42:54 +00:00
Robin Dunn
54eb75b5fb Forward SetFont, SetBackgroundColour and SetForegroundCOlour to the
generic listctrl


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-21 01:12:57 +00:00
Kevin Ollivier
3fd864a139 Implementing column click event handler and SortItems function for native list ctrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-11 20:04:29 +00:00
Paul Cornett
eea2724a28 test wxLC_SINGLE_SEL flag properly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-09 05:12:36 +00:00
Robin Dunn
9ce05df4bc return values of overloaded virtuals should match the base class version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-08 06:42:09 +00:00
Vadim Zeitlin
493e7eb40c fixed unused var warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-04 17:45:58 +00:00
Kevin Ollivier
3ed1dc0add Remove the ability to sort by column in virtual wxListCtrl, and remove movable columns as we don't currently support it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-02 22:48:14 +00:00
Stefan Csomor
01e935b6ce making virtual lists faster by not sorting items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-02 19:31:36 +00:00
Stefan Csomor
819a3b6ff9 first stab at the selection iterator
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-02 18:50:53 +00:00
Paul Cornett
e409b62aaf listctrl header cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-02 17:38:30 +00:00
Kevin Ollivier
f42e073cda Fix editing support.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-30 04:25:03 +00:00
Kevin Ollivier
67650ea0b9 Fixed sorting and commiting support for native virtual wxListCtrl, although leaving it off for now since initial creation of the list items takes a fair amount of time when the item amount is significantly large (as in the listctrl demo).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-30 03:58:30 +00:00
Vadim Zeitlin
e330eb4619 fixed warnings, reformatted braces
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 17:34:30 +00:00
Robin Dunn
0100ee7daa Patch from Tim Kosse to allow virtual list ctrl to work when using the
generic control


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-22 21:47:57 +00:00
Kevin Ollivier
54638f9e66 Fixing SetColumnWidth and selection handling, attempt at fixing ClearAll(), and initial impl. for EditLabel / EndEditLabel.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-22 17:37:01 +00:00
Stefan Csomor
cb305e1e9f getting out for 'addded' events early enough
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-21 05:38:12 +00:00
Stefan Csomor
8d700f716f preliminary editing support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-20 15:48:15 +00:00
Kevin Ollivier
0d2d29b16a Improved handling of column widths, removed need for hidden column for sorting, and put in a stub for editing support.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-19 22:09:41 +00:00
Kevin Ollivier
e42667e599 Handle cases where an index larger than GetItemCount() is passed into InsertItem.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-19 17:08:36 +00:00
Robin Dunn
72bc14da9d Add a couple missing methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-18 19:14:02 +00:00
Stefan Csomor
2a81538d69 fixing notifications
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-18 12:17:34 +00:00
Kevin Ollivier
6a623422ec Accidently checked for invalid image index rather than using the mask.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-17 01:30:26 +00:00
Kevin Ollivier
e96bbb453c Adding OS X list ctrl implementation file, and listctrlcmn file for shared wxListCtrl code (only events right now).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-16 23:04:34 +00:00