Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / ActiveX Controls / September 2004

Tip: Looking for answers? Try searching our database.

Can I control TreeView checkboxes by node?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Simon Shaw - 21 Sep 2004 13:14 GMT
I have an application interface for picking items from a categorised list.
So there are two levels in the tree, categories and pickable items.
I want people to be able to pick a selection of items just from the lower
level.

Can checkboxes be turned on and off for individual nodes, or is there
another way round this?

TIA
Ron Weiner - 21 Sep 2004 14:43 GMT
As far as I am aware the built in TreeView check boxes are either all On or
all Off.  Perhaps someone else can shed additional light here.

I had a similar problem a while back where I had a tree that went to 4
levels. Our customer wanted to be able to select nodes only from the 3rd or
4th level, and did NOT want to see the check boxes anywhere else. The were
concerned that it would confuse users by letting them think that is was
possible to check items on the top two levels.

I solved the problem by binding an Image List control to the TreeControl,
and designing my own images for each level.  I used an empty and a checked
check box for the 4th level, an empty and a checked blue folder for the
third level and a empty yellow folder for the top two levels.  I used the
appropriate image as I built the tree, and coded a bucket full of logic in
the node click event to change the image(s) as necessary.  It was a fair
amount of work, but the results were much more pleasing and less confusing
than having check boxes available at all 4 levels.

Hope this helps.

Ron W
> I have an application interface for picking items from a categorised list.
> So there are two levels in the tree, categories and pickable items.
[quoted text clipped - 5 lines]
>
> TIA
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.