Benoît, Perhaps another approach would be to get rid of the Count property and create a Count method that would count the children of a given root in the control (and optionally all it's branches).
for example / (root) item1 item2--item3 |-item4 |-item5 |-item6 item7 The way I propose the Count method to work would be something like this (if my logic is not sound stop me anytime) Count(root as String, branches as Boolean) AS integer so if you were to call the method for Treeview1 with with the first root and not counting the branches it would look something like this countMyTreeItems = Treeview1.Count("/", false) and for this example countMyTreeItems would be 3 but if you were to call the count method for item2 it would be like this countMyTreeItems = Treeview1.Count("/", true) and for this example countMyTreeItems would be 4 I don't know if you're still faced with the same obstacles in both GTK and Qt Hopefully this proposed approach makes sense and helps a bit more. Regards, Dimitris 2010/1/26 Benoît Minisini <gam...@users.sourceforge.net> > > 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! > > -- > Benoît Minisini > > > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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