Vadim Zeitlin
8854a202f4
no changes, just removed duplicate TreeView_HitTest() calls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-07 20:09:15 +00:00
Vadim Zeitlin
8f6dc819f8
return correct item and position from wxTreeEvent::GetItem/Point() (patch 1622166)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-07 15:43:22 +00:00
Robin Dunn
2bd162773d
Reset the item's text in SetItemFont to ensure that the text will be
...
remeasured with the new font, and the bounding rect will be adjusted.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-23 00:10:15 +00:00
Julian Smart
823b140b65
Fixed compile error on Wine due to type mismatch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-12 17:58:27 +00:00
Vadim Zeitlin
df63b2a48f
let the control process WM_RBUTTONDOWN finally, trying to do it ourselves doesn't look right and results in some weird events (see bug 1541148), it's easier to generate WM_CONTEXTMENU manually instead
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-26 00:58:49 +00:00
Vadim Zeitlin
75afdc2d72
oops, restored accidentally deleted functions in last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 15:39:19 +00:00
Vadim Zeitlin
13229d3539
get rid of wxUSE_CHECKBOXES_IN_MULTI_SEL_TREE code, it's never used and just makes the code which is used more difficult to read
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 15:31:19 +00:00
Václav Slavík
22a35096a0
renamed wxRect::Inside() to wxRect::Contains(), wxRect::Inside(wxRect) is too confusing
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-13 17:12:25 +00:00
Włodzimierz Skiba
57bd4c6031
Include wx/msw/wrap*.h according to pch support (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-07 19:01:45 +00:00
Vadim Zeitlin
0228081ff2
don't crash when EnsureVisible() is called for the hidden root item
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 22:26:53 +00:00
Vadim Zeitlin
20f4b56686
fix compilation both for Robert's cross-compiler and for all normal compilers by just removing the offending m_item initialization line which is unnecessary anyhow
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-24 18:07:40 +00:00
Włodzimierz Skiba
a6e8c584db
WinCE build fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-24 17:43:42 +00:00
Robert Roebling
a680f9a170
Fix same compilation again, I guess 0 was
...
meant to initialize the wxTreeItemId to
nothing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-21 14:15:46 +00:00
Robert Roebling
03e7d1397e
Fix compilation under MSW with GCC cross.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-21 14:12:12 +00:00
Vadim Zeitlin
90c6edd706
TLW default item changes have changed Enter key processing: it was now handled as TAB even for controls such as wxTree/ListCtrl which need it themselves; fix this by checking for VK_RETURN in these classes MSWShouldPreProcessMessage() implementation; also removed specific test for wxTextCtrl in wxWindowMSW::MSWProcessMessage() and simplified its code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-31 22:06:24 +00:00
Václav Slavík
f5bed7a885
refresh tree item after changing its icon so that the change is visible
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-10 22:28:19 +00:00
Vadim Zeitlin
09f277d683
added a wxTreeEvent ctor taking the associated wxTreeCtrl and optional wxTreeItemId; this reduces code duplication and also allows us to easily ensure that client data pointer is set properly for all events (it was never initialized before) (replaces patch 1503531)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-27 14:58:46 +00:00
Vadim Zeitlin
be0e5d699f
made wxTree/ListCtrl::HitTest() const
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-14 12:00:57 +00:00
Vadim Zeitlin
8b713759b6
correct painting of the items with custom colours in TVIS_DROPHILITED state (patch 1491478)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-28 23:45:39 +00:00
Włodzimierz Skiba
9eddec696f
Include wx/settings.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-24 07:16:32 +00:00
Vadim Zeitlin
1b182562bb
fixed bugs in icons handling introduced in 1.227
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-10 00:45:17 +00:00
Paul Cornett
4fab51ddff
unused variables/declarations
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-07 01:17:16 +00:00
Vadim Zeitlin
4523ebb3f1
simplify the client data/non standard images handling code by unconditionally using wxTreeItemParam struct instead of using indirect data only sometimes; also extend it to contain the id which allows to always sort the items correctly (closes bug 1447419) (patch 1449096 from Ryan)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-06 19:17:22 +00:00
Włodzimierz Skiba
670f993563
Include wx/app.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-28 12:44:37 +00:00
Włodzimierz Skiba
e4db172a3b
Include wx/log.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-26 08:21:31 +00:00
Włodzimierz Skiba
ad9835c97c
Include wx/dynarray.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-19 14:18:39 +00:00
Włodzimierz Skiba
027d45e8fc
Back to unsigned int count in wxTreeCtrl.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-24 23:46:43 +00:00
Vadim Zeitlin
637b7e4f3a
added semicolons after wxCHECK()s (part of patch 1450705)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-21 14:16:34 +00:00
Włodzimierz Skiba
8ecd5de227
[ 1357527 ] Cast to void to silence GCC's warnings.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-01 11:05:31 +00:00
Vadim Zeitlin
cc11ded1ae
made wxTreeTraversal and wxIDropSources dtors virtual (patch 1311828)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-26 13:08:09 +00:00
Chris Elliott
bb0d2f0379
remove GetImageList(int)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-28 14:05:49 +00:00
Chris Elliott
3f93a7508e
avoid hidden GetImageList
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-26 20:09:10 +00:00
Vadim Zeitlin
22574b4a9c
renamed DoHitTest() to DoTreeHitTest() to avoid conflict with existing wxWindow method
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-17 19:31:40 +00:00
Vadim Zeitlin
4c2a39bec1
removed deprecated InsertItem() overload because it masked all the other ones
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-10 21:46:24 +00:00
Vadim Zeitlin
642446e3bf
Windows compilation fixes after wxTreeCtrl refactoring
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-10 20:36:20 +00:00
Vadim Zeitlin
8cee4a304f
introduced a common base class for both MSW and generic wxTreeCtrl implementations
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-10 20:25:02 +00:00
Vadim Zeitlin
49732ef201
corrected GetBestSize() implementation: take all items, not just the currently visible ones
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-09 17:19:43 +00:00
Mattia Barbon
dee1a63ff5
Removed WXWIN_COMPATIBILITY_2_2 together with code guarded by it.
...
Changed default for WXWIN_COMPATIBILITY_2_4 to 0.
Added WXWIN_COMPATIBILITY_2_6 (defaults to 1).
Ran build/update-setup-h.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-09 15:48:42 +00:00
Vadim Zeitlin
96d8f9207f
implemented GetBestSize() (TODO: make this available in generic version as well)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-09 13:38:15 +00:00
Vadim Zeitlin
14ba002a91
added more methods to transparently convert wxTreeItemIdValue to wxTreeItemId to wxArrayTreeItemIds
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-03 17:54:09 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
9f22b00e34
don't generate ACTIVATE events for Alt-Space key press
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-06 11:25:23 +00:00
Vadim Zeitlin
68fc69f307
WinCE compilation fix (no SM_C[XY]DRAG under CE as there is no mouse cursor)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-19 22:37:44 +00:00
Julian Smart
e3ad57026a
Applied patch [ 1212208 ] Fix a bug in wxTreeCtrl with wxTR_MULTIPLE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-16 17:01:19 +00:00
Julian Smart
b9e9b40c49
Applied patch [ 1196827 ] Fixes Assert with wxTreeCtrl::GetSelections on wxMSW
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-22 14:47:41 +00:00
Kevin Hock
147964ca88
Include the location of the right-click, or the item, in the MENU_ITEM event.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-21 02:58:47 +00:00
Włodzimierz Skiba
2f17da8b71
MinGW fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-18 08:48:23 +00:00
Włodzimierz Skiba
03a62a0ccb
Include common controls before completing it with missing.h.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-17 20:12:53 +00:00
Julian Smart
f3f717033d
Reduce dependency on declarations that may or may not be present
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-13 12:12:11 +00:00
Vadim Zeitlin
286694ba26
synthesize NM_RCLICK ourselves now that def window proc doesn't do it as we don't give WM_RBUTTONUP to it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 22:34:43 +00:00