Robin Dunn
2033f5ec6a
A bit of cleanup, use a lighter shade of grey for the default pen, use
...
the base class HasFlag, etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-08 20:09:21 +00:00
Robin Dunn
0d7fe3edac
Ensure that wnd is not None before calling Hide
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-08 02:41:40 +00:00
Robin Dunn
bf2481b9cf
Patch from Andrea that fixes the following problems/issues:
...
a) ZeroDivisionError when using the Vista selection style and calling
SelectItem; for some strange reason, sometimes the item rect is not
initialized and that generates the ZeroDivisionError when painting the
selection rectangle;
b) Added a DeleteWindow method to GenericTreeItem class, for items
that hold a widget next to them;
c) Renamed CustomTreeCtrl method IsEnabled to IsItemEnabled, otherwise
it conflicts with wx.Window.IsEnabled;
d) Now CustomTreeCtrl behaves correctly when the widget attached to an
item is narrower (in height) than the item text;
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-17 16:26:28 +00:00
Robin Dunn
123129601c
fix offset of widget
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 18:54:05 +00:00
Robin Dunn
236a17eb09
Make GetItemImage API consistent with other trees
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-08 19:21:39 +00:00
Robin Dunn
caee23d55d
wx.lib.customtreectrl patches from Andrea:
...
1. ExpandAll has been renamed as ExpandAllChildren, and the new
ExpandAll now takes no input arguments (consistent with
wx.TreeCtrl)
2. ctstyle keyword is now defaulted to 0: every style related to
CustomTreeCtrl and the underlying wx.PyScrolledWindow should be
declared using the keyword "style" only. For backward
compatibility, ctstyle continues to work as I merged ctstyle and
style in the __init__ method.
3. GetClassDefaultAttributes is now a classmethod.
4. UnselectAll bug fixed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-02 21:04:52 +00:00
Robin Dunn
503cad4a4c
Make the greyed image list be the same size as the main image list,
...
don't assume 16x16
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-12 21:27:09 +00:00
Robin Dunn
f4d0946dcf
Patch #1645253 , fixes overflow error
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-26 20:14:33 +00:00
Robin Dunn
e1463b9df0
Patches from Andrea
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-22 23:52:32 +00:00
Robin Dunn
facc1d350b
wx.lib.customtreectrl patches from Andrea Gavana.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-18 23:18:07 +00:00
Kevin Ollivier
8bc0c17afc
Migate to the new wxRendererNative::DrawItemSelectionRect function where available, and fix selected text color on Mac.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-19 06:47:48 +00:00
Robin Dunn
58dbf9d0a2
better check for valid font and color
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 20:51:20 +00:00
Robin Dunn
eecfab1796
A patch from Frame Niessink which adds an additional style that
...
(un)checks a parent when all children are (un)checked,
i.e. TR_AUTO_CHECK_PARENT.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-03 08:04:27 +00:00
Robin Dunn
6e65f80be5
Always draw the selection of selected items, not just when they have
...
an icon
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 18:43:07 +00:00
Robin Dunn
2356118e69
Fixes from Andrea
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-24 01:29:47 +00:00
Robin Dunn
9443113386
Lots of little tweaks, mostly to draw selected items better such that
...
they look right with the new wxMac DC, but also other general
improvements as well.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-22 03:07:21 +00:00
Robin Dunn
369be443aa
Don't use the window position as the x offset when painting the full
...
row highlight, always use zero.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-11 23:54:08 +00:00
Robin Dunn
c8f129d067
Add CustomTreeCtrl from Andrea Gavana
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-09 02:23:32 +00:00