Commit Graph

28 Commits

Author SHA1 Message Date
Robin Dunn
065fa541eb Avoid crash in SelectAll if there are no nodes besides the root
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-05 01:35:36 +00:00
Robin Dunn
99a001dd43 Changed how the stock objects (wx.RED, wx.RED_PEN, wx.RED_BRUSH, etc.)
are initialized.  They are now created as a wrapper object that
initializes itself on first use (when an attribute of the object is
requested.)  This was needed because of similar delayed initialization
functionality that was implemented in wxWidgets, but the end result is
cleaner for wxPython as well, and allowed me to remove some ugly code
under the covers.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 21:49:48 +00:00
Robin Dunn
760b2b99f3 Use wxSystemSetitngs for the rule color
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-24 01:04:21 +00:00
David Surovell
63811cf00a removed deprecated wxDC.[Begin,End]Drawing calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-07 09:32:05 +00:00
David Surovell
7ec81a8c2d fixed improper (long) casts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-28 22:24:00 +00:00
Dimitri Schoolwerth
412e0d47c0 applied patch #1356901 "Yet another removal of extra semicolons", also fixed remaining similar cases of extra semicolons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-20 21:55:35 +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
Julian Smart
d69225772a Olly Betts' typo patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-31 09:29:22 +00:00
Dimitri Schoolwerth
0a3d6509d4 removed redundant preprocessor check
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-22 01:48:22 +00:00
Robin Dunn
4f73709d9c Set the mouse pos for the drag events, add support for the tooltip event
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-02 18:32:28 +00:00
Robin Dunn
d77016e8aa GetSystemColour --> GetColour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-05 21:55:39 +00:00
Robin Dunn
136518e5c0 Factor out the OnSize code so it can also be used in other places
where the header window needs to be adjusted.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-03 22:10:10 +00:00
Robin Dunn
e4b64104c8 fix compilo for when there are no precompiled headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-31 22:27:51 +00:00
Robin Dunn
e778b8f059 Correct some redraw glitches in the header when resizing, and also
double buffer the header to eliminate the rest of the flicker.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-31 20:21:44 +00:00
Robin Dunn
91ce910234 Compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-12 20:34:57 +00:00
Robin Dunn
d5a0636fa0 Improve image hittest
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-05 18:24:13 +00:00
Robin Dunn
d22956def7 off-by-one fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-28 19:49:00 +00:00
Robin Dunn
ec865862e4 Corrected compile warnings, took out debug printf
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-28 19:24:58 +00:00
Robin Dunn
8e3ca43b37 Patch from Alberto Griggio to use the wxRenderer for drawing the
header and buttons, plus some tweaks from me to calculate the height
of the header based on font size.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-28 18:59:28 +00:00
Robin Dunn
3872d96df2 give the generic tree and list controls a DoGetBestSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-25 22:22:37 +00:00
Robin Dunn
da9b415349 fixed crashing bug when trying to set colours too soon
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-11 22:21:05 +00:00
Robin Dunn
648d396ceb use TWIST buttons by default on the Mac, but also make it possible to
skip the style adjustments so the programmer can do what they want too.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-29 02:58:19 +00:00
Robin Dunn
8fdd04f882 Fixed HitTest for columns > 1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-29 01:58:35 +00:00
Robin Dunn
135df45b2e Oops, forgot to remove som testing code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-29 01:00:12 +00:00
Robin Dunn
f84fa75af9 Fixed lots of painting, clipping and alignment issues.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-29 00:56:52 +00:00
Robin Dunn
79e55c661b Fix HitTest offset, and some other little things that had been changed
in our old copy of treelistctrl


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-28 21:30:52 +00:00
Robin Dunn
1e03b21d31 m_img* need initialized too otherwise we can end up with rows that are
a million pixels high!


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-14 21:18:50 +00:00
Robin Dunn
28eab81fdc Switch to the TreeListCtrl from the wxCode project.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-25 04:59:23 +00:00