kynikos / outspline

Extensible outliner and personal time organizer to manage todo lists, schedule tasks, remind events.
http://kynikos.github.io/outspline/
GNU General Public License v3.0
47 stars 9 forks source link

Tree horizontal scrolling #364

Open kynikos opened 9 years ago

kynikos commented 9 years ago

Currently the database tree never shows horizontal scrollbars, which should be instead shown when:

DataViewCtrl only shows a horizontal scrollbar depending on the width of the column header(s), not the content in the rows. For this reason the column header width should probably be set every time an item is added, updated, removed, expanded or collapsed, using http://wxpython.org/Phoenix/docs/html/SettableHeaderColumn.html#SettableHeaderColumn.SetWidth

Also consider ellipsization as an alternative. The standard http://wxpython.org/Phoenix/docs/html/dataview.DataViewRenderer.html#dataview.DataViewRenderer.EnableEllipsize cannot be used because the custom renderer draws the text in its own special way.