wxTreeCtrl or wxTreeListCtrl with "owner draw" items

Robin Dunn robin at alldunn.com
Wed May 2 12:21:22 PDT 2007


Volker Bartheld wrote:

> The background is, that a request has been made for a GUI to configure
> firewall entries in a tree-hierarchical structure with buttons, checkboxes,
> dropdown lists, ... and I'm currently evaluating if this is a wise thing to
> do with wxWidgets.

You might want to take a look at the CustomTreeCtrl in the wxPython lib. 
  It might be a big task to port it to C++ but it gives you an idea of 
what is possible.  It's basically the generic wxTreeCtrl ported to 
Python and then extended to support items that have checkboxes or radio 
buttons, items that are hyperlinks, items with multiple lines of text, 
items with a wxControl located next to them, etc.

http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/wxPython/wx/lib/customtreectrl.py?rev=1.14&content-type=text/vnd.viewcvs-markup

There are some screenshots here:

http://xoomer.alice.it/infinity77/eng/CustomTreeCtrl.html


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wx-users mailing list