wxListCtrl with static controls

Robin Dunn robin at alldunn.com
Tue Feb 19 09:45:07 PST 2008


Thomas Hauk wrote:
> I was wondering if anyone's designed a custom wxListCtrl that allows for 
> embedded static controls, especially wxChoices?
> 
> An example screenshot is here: 
> <http://wxforum.shadonet.com/attachments/smartplaylist_938.png> the 
> iTunes "Smart Playlist" dialog. Each line in the list has two dropdown 
> menus, followed by a text entry field (or in the case of Rating, a 
> custom control that shows up to 5 stars). The dialog is nearly identical 
> on Mac OS X.
> 
> I did a search of the wx forum and saw two controls that were similar: 
> TwinForms "Enhanced wxTreeListCtrl" and wxPropertyGrid, but neither were 
> adequate.

As long as you don't have a large number of controls the UI you pointed 
to can be implemented simply by using a bunch of widgets in a 
wxFlexGridSizer on a wxScrolledWindow.  No need to worry about a 
wxListCtrl at all.


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





More information about the wx-users mailing list