Treeview - Expand/Collapse

G

Guest

Recently the 'PlusMinus' box has failed to appear on the treeview hierarchy
and there is no way to expand or collapse branches. I am using the correct
style - 2, 6 or 7. Has anyone any idea what has caused this? It seems to be
a recent development - I am not aware of changing anything - or perhaps there
is an Access setting that I have overlooked.

I am using Access 2003 SP2 under XP Pro SP2. The OCX control is SP6
contained in the MSCOMCTL.OCX library.

Rod
 
S

Stefan Hoffmann

hi Rod,

Rod said:
Recently the 'PlusMinus' box has failed to appear on the treeview hierarchy
and there is no way to expand or collapse branches.
Is it missing on all filled branches or only on at the root node?
Use LineStyle = tvwRootLines (1), if it is the second case.

mfG
--> stefan <--
 
G

Guest

Gentlemen,

An update: It just so happened that the structure of the data was one root
and many branches at the next level but only at the next level. So my
hierarchy looked something like this.

Root
Branch
Branch
Branch
...

I was expecting to see

- Root
Branch
Branch
Branch
...

As soon as I forced further levels the plus and minus signs appeared as
expected but not against the root.

Has it always been the case that the root carries no plus/minus? I feel
sure I would have noticed this before. Anyway if no plus/minus and you
forget to set the root node's expanded property to true then there is no way
to expand the hierarchy.

Rod
 
D

Douglas J. Steele

What have you set the treeview's Style property to? You might have it set to
tvwPlusMinusText (2). Try tvwTreelinesPlusMinusText (6).
 
S

Stefan Hoffmann

hi Rod,

Rod said:
So my
hierarchy looked something like this.

Root
Branch
Branch
Branch
...
As i said before, check the LineStyle property.


mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top