Benoît Minisini ha scritto:
>> Benoît,
>>
>> Just for that you should go with the GTK+ way :P
>>
>> Regards,
>> Dimitris
>>
>>     
>
> But is it really useful? We need to know how many root items a TreeView or a 
> ColumnView has, too!
>
>   
What about using two different properties: .Count (all the items) and 
.Children.Count (only the children of a specific node)?
Note that by using only the second property it is possible to calculate 
the first one by scanning the children and summing up; if only one 
property has to be in existence, then the second one is more versatile 
and probably more needed in common situations.

Regards,
Doriano

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to