Drew Wutka
DWUTKA at Marlow.com
Sun Mar 1 02:09:11 CST 2009
Once you click on the 'more controls' and find the treeview, after you click on it, you should be able to click on the form to create the control. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Saturday, February 28, 2009 3:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Tina's Treeview example I found it in the "more controls" list, although it didn't let me plunk it down on my toolbox, but I found it. T Tina Norris Fields wrote: > Hi Drew, > > Is there a way to get a button for the Access toolbox to put a Treeview > control onto a form? Or, is it done only through code? > > Tina > > Drew Wutka wrote: > >> Glad you like it Tina. I will warn you that the demo I posted for you >> is just the tip of the iceberg when it comes to what you can do with a >> treeview. >> >> A great example is 'HitTest'. It's a method of the Treeview control, >> where you give it x,y coordinates, and it returns the node at the >> coordinates. This allows you to create custom behaviors for left and >> right clicks (Mouse Up event gives you the x,y coordinates). Where you >> could use that in your system, you could actually start the root nodes >> as the Volunteers. And then have the child nodes be the skills and >> levels. The normal left click could have you 'check' if the skill nodes >> are built (and if not, build them, so you don't building thousands of >> nodes from the get go...), and the right click could display a popup >> menu such as 'edit volunteer information' or 'create a new skill', etc. >> >> Here's a visual example of one of the most highly used treeviews I have >> built: >> >> http://www.marlow.com/PhoneList.jpg >> >> That screen shot (I blurred the phone numbers...) shows what you can do >> with the image capabilities of a treeview. I've right clicked my name, >> showing the custom popup menu that displays (based on the node that was >> clicked). One of the expanded nodes is Currently logged on computers, >> if I expand one of those nodes, it gives me Remote Administrator >> (clicking on that node opens a remote admin session to that machine), >> computer management (clicking on that node opens a computer management >> session to that computer), local drives (expanding that node gives me a >> list of the local drives on that machine, which I can click to open a >> Windows Explorer session to that drive). >> >> All from one treeview! >> >> Good luck with your project (feel free to holler if you have any >> questions about what I did...)! Next to classes and collections, I've >> found Treeviews to be one of the most powerful tools in a developer's >> arsenal! >> >> Drew >> >> >> >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited.