TreeView Display Issue

G

Guest

I have implemented a TreeView (v6.0) ActiveX control on an Access 2K form
that lists the relationships among several Requirements Baselines and their
Reviews, Change Requests, and other relevant data.

The control populates all of the parent, child, an sibling nodes properly
and I can see the results when I switch between design view and form view
when I test.

However, when the form is opened either as an independent form via the
database window or via a DoCmd.OpenForm statement, the control displays the
proper structure (plus signs and lines) but does not display the node
contents. Note that it does show the correct tree structure. (The
control uses Style "6 - tvwTreelinesPlusMinusText" and a LineSyle of "1 -
tvwRootLines" and only these symbols appear properly). It is the associated
node text that does not appear.

I cannot understand why this different behavior between form view and other
views should exist. This is a strange problem and any help would be greatly
appreciated!
 
R

Rob Parker

Seems exceedingly strange, and I can't explain it at all.

My only thought is that you aren't populating the Node.Text properties
(which is what is displayed, rather than the Node.Key which defines the
structure). However, if the treeview control displays correctly when you
change to view mode from design mode during development/testing, this is
obviously wrong. It shouldn't depend upon how you are opening the form;
either directly or via code; checking with several forms of mine which
contain treeview controls shows that the method of opening the form has no
effect . You've obviously got the code to populate the treeview control in
a suitable event , otherwise it would fail to populate the control when youn
change to view mode during testing. My normal practice is to put the tree
populate code in a separate routine, called initially from the OnLoad
routine, and often from other places depending on what's happening on my
form(s). If the code is not triggered, the treeview is completely blank -
it does not show the structure. My controls also use Style 6 and LineStyle
1, so this doesn't seem to be the problem either.

I'll be very interested in what anyone else can contribute to this
discussion,

Rob
 
G

Guest

The above problem has been solved by an upgrade of mscomctl.ocx from version
6.0.81.77 to 6.0.88.62
 

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