Aqua Controls - Treeview

Greetings!

First, let me say the Aqua Controls are great! I redesigned an application for a relative (he manages a local wrestling association) using the controls and the result was fantastic! The improvement in the UI was excellent. Good Work!

While most of the controls have been easy to figure out, the list view and treeview have eluded me. I have yet to figure out how to add items or get the selected item from both controls. I'm working on a Video Games database application with the aqua look and feel. The database will include short histories and pictures of current and past consoles along with the games in your collection. I want to use the treeview and listview to show them in both a normal list style and a hierarchical style (i.e. Console and then the games listed for that console.)

Any help is greatly appreciated!

Thanks.

:)

#5366

The Methods/Properties/Events of the aquaTreeview and aquaListview are virtually identical to that of the regular MS Treeview and Listview as they are built directly from those two controls. The only difference is that there are no property pages at design time. You have to do everything at runtime. So, just check out the MS documentation on the two controls.

Also, you might check out the S-Grid control. I distribute an "aqua-fied" version of the vbAccelerator S-Grid control with the AquaControls. It shows up in the Componenets list as "vbAccelerator Grid Control (VB6 version)". This is a very powerful control and doesn't flash like the MS controls do. Check out S-Grid documentation and samples here. I still have a little work to do on the "aqua-fied" version but it's working pretty well now. It's what I use in iTalk.

#5405

Nice! I'll try out the vbAccelerator control too.

One more question, if you don't mind: how do you get images to display in the Aqua toolbar? I've tried using an image list, but nothing displays.

I'm using VB6, SP5 on a Win XP Home edition machine. Don't know if that makes any difference.

Thanks for the help!

#5415

There's an MS treeview? How do I get my Open windows and Explorer and things like that to use treeview instead of the normal one?

#5427

Originally posted by ricky@Dec 9 2002, 10:13 AM

There's an MS treeview?  How do I get my Open windows and Explorer and things like that to use treeview instead of the normal one?

Not sure exactly what you are asking.

#5452

Hmmm... maybe I'm thinking of something different. Maybe what I'm thinking of is not the treeview but rather a column view or something. I'm thinking of that method of navigating through directories where when you click on one, the screen slides left and a new column with the contents of the new directory appears. Is that possible in windows?

#5464

Yes...you are thinking of the column view. AquaFinder has column view but I need to do a LOT of work to it. I've neglected that program for a long time and it's really showing.

#5470

Hey Jef,

The vbAccelerator control is awesome. Looks even better with the 'aqua-fication' that you did. Thanks for pointing it out. That's a great site too. I'll have to check it more often.

I have another question for you: I sometimes lose all of the text on the Aqua controls. They revert back to the default text (i.e. Button 1) that is present when you initially add the control. This has happened after I have tested the app in the VB environment or if one of the controls crashes (generally it has been the tab control-my favorite-when I try to switch the current tab in the properties pane inside the IDE.) Have you seen this? Is there something I am doing that may cause this? I'm using Stardock's Windowblinds and the WindowFX application. They sometimes can cause odd behavior in apps. Just curious.

The controls are great. Thanks again!

#5584

I've not seen the specific error you are reporting, however, I am religious about saving my project in SourceSafe very frequently. I do notice some strange behavior at times and have had to (on more than one occasion) revert my project back to a version I had backed up in SourceSafe. If you don't have SourceSafe, you can always just make backup copies of your program directory.

Also, I exclude VB6.exe from all Stardock apps. They do cause problems.

#5586

Originally posted by George@Dec 9 2002, 07:41 AM

Nice!  I'll try out the vbAccelerator control too.

One more question, if you don't mind:  how do you get images to display in the Aqua toolbar?  I've tried using an image list, but nothing displays.

I'm using VB6, SP5 on a Win XP Home edition machine. Don't know if that makes any difference.

Thanks for the help!

George,

Here is how to use the aquaToolbar.

You must create up to 4 ImageList controls inside the aquaToolbar control. (The aquaToolbar is a "container" control. Just click on the MS ImageList control in the VB IDE Toolbox and then "draw" the ImageList control onto the aquaToolbar. The 4 different ImageList controls represent the Normal, Pressed, MouseOver, and Inactive states of each icon in the toolbar. However, if you are going to use the same images for Normal and MouseOver (like I do in the Aqua Apps) you only need to create 3 ImageLists. Do NOT create them as a control array. Give each ImageList a unique name. Next, add the images to the ImageLists. You must give each image a "key" value. Use the same "key" value for the corresponding images in each ImageList. Now, right-click on the aquaToolbar control and select Properties. In the Property pages dialog, use the Add buttons to add each icon you want on the toolbar. Assign a label to each icon and enter the "key" value you used in the ImageList into the Image field. Next entered the ImageList names into the corresponding fields in the Property page.

Bear in mind that the aquaToolbar does not always

draw completely in design mode. You will have to run your program to test it out. There is an "ButtonClick" event for the aquaToolbar. The "sButton" parameter corresponds to the Label that was assigned to the icon.

Hope this helps!

#5588

Jef,

Thanks for the info.

RE: the odd stuff...I have started saving frequently and making backups. Also, I kind of thought the Stardock stuff might cause problems. I'm taking your advice on that one too.

RE: the toolbar. Very clever. Gonna try it now!

Thanks again for your help.

#5591