RE: still fighting with VB6 now Checkboxes in a TreeView Control?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jeff Beem (JeffBeem_at_discussions.microsoft.com)
Date: 02/09/05


Date: Wed, 9 Feb 2005 14:55:05 -0800

I believe the only way to do this with the common dialog treeview is through
subclassing. You might be able to find an example on www.vbaccelerator.com.
We had a similar dilemma at my office and decided just to make the treenode
text bold when a child item was checked.

Hope that helps,

Jeff Beem

"Charlie" wrote:

> nevermind my last post, sorry, I didn't read far enough.
>
> "David" wrote:
>
> > Hi
> >
> > I'm still on VB6.
> >
> > What I'm trying to implement is similar functionality
> > as the tree view used (for example) in Microsoft Backup
> > (from Win98).
> >
> > I have it working good with checkboxes, icons for open
> > and closed dir's ect.
> > Now all I want to do (and I'd be soo happy...!), is to be
> > able to dim the checkboxes higher up in the tree when
> > one lower down is checked (like Backup does).
> >
> > eg.
> > Check a box and all boxes below it are checked, and
> > all boxes upwards towards the root in the chain become
> > 'dimly checked' showing partial selection of those
> > particular nodes.
> >
> > I can't find any means of isolating one node in the tree
> > and causing the 'checks' to be dimmed or change color.
> > Properties provided such as ForeColor, Bold ect. do not
> > act on the boxes.
> >
> > Any body have any ideas??
> > I'm not worried about the logic for the tree, only getting
> > hold of a reference to the Node object's checkbox and
> > changing its color.
> >
> > I realize it could be complicated, so just send me in
> > the right direction, assuming of course it's even possible.
> >
> > Hate to have to start building a tree from scratch just to get
> > the ability to individualy dim a checkbox.
> >
> > David Otte
> >
> >
> >



Relevant Pages

  • RE: still fighting with VB6 now Checkboxes in a TreeView Control???
    ... "David" wrote: ... > as the tree view used in Microsoft Backup ... > I have it working good with checkboxes, ... > all boxes upwards towards the root in the chain become ...
    (microsoft.public.vb.general.discussion)
  • Re: CtreeCtrl + selective checkboxes
    ... > the tree appear with check boxes. ... The tree control uses image state mask to show/hide the checkboxes (so ... TreeCtrl.SetItemState(HTREEITEM, 0, TVIS_STATEIMAGEMASK); ...
    (microsoft.public.vc.mfc)
  • still fighting with VB6 now Checkboxes in a TreeView Control???
    ... as the tree view used in Microsoft Backup ... I have it working good with checkboxes, ... all boxes upwards towards the root in the chain become ...
    (microsoft.public.vb.general.discussion)
  • Re: Different data shown based on user input
    ... my advice changes with the info that there are over 200 checkboxes. ... I suggest you use combo boxes. ... Dim strStub As String ...
    (microsoft.public.access.queries)
  • Re: Different data shown based on user input
    ... A form that knows which check boxes have been checked can be created like ... --check only one check box and observe that the other checkboxes are ... The basic process is to build the query using the fields that have been ... Dim strStub as String ...
    (microsoft.public.access.queries)