RE: still fighting with VB6 now Checkboxes in a TreeView Control?
From: Jeff Beem (JeffBeem_at_discussions.microsoft.com)
Date: 02/09/05
- Next message: Søren Ørslund: "Re: filecopy"
- Previous message: Bob O`Bob: "Re: Object Required when using set"
- In reply to: Charlie: "RE: still fighting with VB6 now Checkboxes in a TreeView Control???"
- Next in thread: David: "Re: still fighting with VB6 now Checkboxes in a TreeView Control?"
- Reply: David: "Re: still fighting with VB6 now Checkboxes in a TreeView Control?"
- Messages sorted by: [ date ] [ thread ]
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
> >
> >
> >
- Next message: Søren Ørslund: "Re: filecopy"
- Previous message: Bob O`Bob: "Re: Object Required when using set"
- In reply to: Charlie: "RE: still fighting with VB6 now Checkboxes in a TreeView Control???"
- Next in thread: David: "Re: still fighting with VB6 now Checkboxes in a TreeView Control?"
- Reply: David: "Re: still fighting with VB6 now Checkboxes in a TreeView Control?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|