[AccessD] Tina's Treeview example

Jack and Pat drawbridgej at sympatico.ca
Sun Mar 1 11:36:00 CST 2009


Treeview example and tutorial at Treeview
<http://mytreeviewblog.blogspot.com/>  Tutorial Basic

I found it useful since I haven't worked with Treeviews.

 

Also thought Drew's solution very nice!!!

Jack

 

 

-----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 4: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




More information about the AccessD mailing list