[Gambas-user] enumerate treeview items
Christopher Brian Jack
brian at ...1334...
Thu Oct 26 21:14:32 CEST 2006
On Thu, 26 Oct 2006, olinux wrote:
> Is somebody to know how to enumerate items in a treeview like for each
> loop ????
>
>
> regards
> Olivier Coquet
I just got the brainstorm to make a class to do this. Basically you'd
create the iterator class with NEW, specifying the client TreeView,
observer object and callback prefix. Then you'd call
tvIterObject.ForEach() and the callback on the observer object will be
notified of Begin, Visit (for each treeview item visited) and Done
There's some complexities in making it of general use but I'm working on
it. When it works and I get the bugs out I'll post the code.
.=================================================.
| Christopher BRIAN Jack aka "Gau of the Veldt" |
+================================================='
| oevna at ...1544...
`=================================================-
Hi Spambots, my email address is sputnik at ...1334...
Hi Humans, my email address uses rot13 cipher
More information about the User
mailing list