[Gambas-user] How do I use TreeView/ColumnView
ron
ronstk at ...239...
Tue Mar 23 22:11:52 CET 2004
I have a list of entries made in the ColumnView
r-1
l1-1 'World'
l2-1 'Water
l2-2 'Hello'
l2-3
l1-2
l2-1
l2-2
l2-3
l1-3
When I click on r-1 -> l-1 -> ,l2-2 containing Hello
the _Select is fired if it is the first time and then the _Click
The .key , .Item.Key and .Current.Key give all the same node key
as 'r-1/l1-1/l2-2.'
When I in code do ColumnView1.MoveFirst they stay the same
instead of going to 'r-1'
When I do ColumnView1.MoveNext or ColumnView1.MovePrevious
or any of the other the key stays the same.
Using .MoveTo("r-1") does also nothing.
If I must use MoveTo(key) to go to the parent how do I get the key of the
parent, assume .MoveParent returns False so there is a parent.
I know that if the key is build as a path then I can get the key of the parent
and use it in a .MoveTo() if that worked.
But How do I find out the key for 'r-1/l1-1/l-1' with 'Water' as text
Despite the nummers in the keys in the example above, try to see it as
directories, subdirectories and filename.
I understand it now the .MoveXXXX returns False if it can done
and True if not posible, or in another way, if they return True means that it
can't be done like a error.
They show to me as a request "Do I get a error if I do MoveXXX" but how do I
then actual do the MoveXXX operation?
When I click at item with 'Hello' how do I get the text 'World' in the parent
node?
The attachment contains my test program.
There is now a TreeView and a ColumnView in the form.
I put the TreeView as last check on it to test if it did the same
and it does.
ATM I am lost how to use the ColumnView/TreeView
Ron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Columnview-0.0.tar.gz
Type: application/x-tgz
Size: 1593 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20040323/ee987bdf/attachment.bin>
More information about the User
mailing list