[Project_owners] Custom TreeViews

Andy Frank andy at andyfrank.com
Sat Jan 8 16:57:36 EST 2005


Neil wrote:
> Neil Deakin wrote:
> 
>> Andy Frank wrote:
>>
>>> I haven't had much success with discerning custom TreeViews.  It 
>>> seems to use a constant to define the row size (not sure why) - so 
>>> how do you approach notifying the view that the model has changed [in 
>>> size]?  
>>
>>
>> The treeview is the model (in the mvc sense), so I'm not sure what 
>> you're asking here. Maybe you mean to call 
>> tree.boxObject.rowCountChanged to indicate that a row(s) have changed 
>> and thus repaint as necessary.
> 
> 
> I assume you meant tree.treeBoxObject there; if you don't have a 
> reference to the tree handy (perhaps in a utility library) then 
> view.selection.tree also (somewhat confusingly) gives you the box object.

That's it.  Thanks.


More information about the Project_owners mailing list