Commit Graph

14 Commits

Author SHA1 Message Date
cbeytas
7b02c88a28 Merge branch 'master' into treefixes 2021-01-10 03:04:29 +00:00
Metallicow
e442736ee3 Fix some sizer issues with wxPy4.1 2019-06-20 19:46:45 -05:00
cbeytas
b7d118df0f Add fullscreen option to CustomTreeCtrl Drag/Drop
Feature addition
Add SetDragFullScreen and GetDragFullScreen methods which changes the
way the simplified drag/drop works in the tree. This flag is passed
to the wx.DragImage.BeginDrag() method when it is called.
Also add this option to HyperTreeList.
Modify the CustomTreeCtrl and HyperTreeList demos so it can be tested.
2019-01-07 00:26:28 -05:00
cbeytas
ac0f578a01 Fix CustomTreeCtrl/HyperTreeList background color
CustomTreeCtrl and HyperTreeList use wx.SYS_COLOUR_LISTBOX for their
default background colors. This defaults to dank Grey on MSW/GTK/MacOS
even though the TreeCtrl and ListCtrl on all three platforms default
to a white background. Use a trick from UltimateListCtrl to take
default colors from wx.ListCtrl.

This can be seen in the demos, except that the CustomTreeCtrl demo
forces its background to wx.WHITE. With these changes forcing the
background color is no longer necessary and allows the controls to
take on the native background color for themes that change it.
2019-01-07 00:12:00 -05:00
cbeytas
8113033d6e Recalculate CustomTreeCtrl on multiline text
In CustomTreeCtrl and HyperTreeList the SetItemText method recalculates
the size of the item row in which the text was changed. If the number
of lines in the text changes the entire tree must be recalculated
as all items below must be shifted to compensate. This change attempts
to recalculate the entire tree only when necessary (when number of
lines change) in order not to slow down existing code that performs a
lot of SetItemText() operations on an unfrozen tree.

Add a "Change Item Text" option to the CustomTreeCtrl and HyperTreeList
demos so that this can be tested. Before this fix, changing the number
of lines of text in an item would leave gaps or create overlaps
between items in the tree.
2019-01-06 23:47:57 -05:00
cbeytas
2315a7175b Merge item hiding to CustomTreeCtrl
Move item hiding from HyperTreeList to CustomTreeCtrl so that both
trees can have the feature.

Add a HideItemWindows() method to hide windows only for a specific item
and its children. This is much faster than calling HideWindows().

Add context menu options to the CustomTreeCtrl demo so that Hiding
can be tested.
2019-01-06 23:16:20 -05:00
cbeytas
d1361f3d0b Fix bug in HyperTreeList and CustomTreeCtrl demos
Throws ValueError: chr() arg not in range(256) if any special key is
pressed while editing text control.
2018-11-21 15:17:23 -05:00
cbeytas
fb10da6aab Fix typo in CustomTreeCtrl and HyperTreeList demos
Context menu "Change Item Icons" would throw an exception due to typo.
2018-11-21 14:46:06 -05:00
Robin Dunn
addb1906c9 Merge branch 'HelioGuilherme66-40xcustomtreectrl' into wxPy-4.0.x
(cherry picked from commit 32ae30b988)
2018-09-25 15:19:53 -07:00
Robin Dunn
b58599433d PR #73: a few wx.lib things for Py33
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@76372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-04-19 21:24:58 +00:00
Robin Dunn
558fcfa5a3 PR61: Added python shebangs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-01-23 00:44:14 +00:00
Robin Dunn
ea181b5b72 PR57: Mainly style changes, a few white space stuff and an xrange to range change.
* Phoenix FONTFAMILY, STYLE, WEIGHT Fixes
* PENSTYLE_ & BRUSHSTYLE_ Fixes
* Fix FONTWEIGHT to FONTSTYLE typo
* Phoenix Deprecations: wx.OPEN to wx.FD_OPEN
* Phoenix Deprecations: wx.SAVE to wx.FD_SAVE

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-01-23 00:19:55 +00:00
Robin Dunn
005a66385b CustomTreeCtrl Phoenix Demo Fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-05 22:19:06 +00:00
Robin Dunn
f96e25db1f Copy the wxPython demo from Classic
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-11 18:24:09 +00:00