Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Need expandable node tips  (Read 841 times)

0 Members and 1 Guest are viewing this topic.

Jim

  • Guest
Need expandable node tips
« on: December 02, 2008, 09:38:28 AM »
Hello.

It seems that your 'expandable node feature' is suitable for my needs. What I need to do to show some additional content (text and graphics) when the mouse is over a node. For instance, I want to show a graphics file`s content with EXIF info.
Can you provide steps to do that?

Cheers,
   Jim

Ruslan

  • Flexible TreeView Team
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 569
Re: Need expandable node tips
« Reply #1 on: December 02, 2008, 05:12:15 PM »
Hello Jim and welcome!

Thank you for your interest to Flexible TreeView.
We`ll prepare example project and notify you here.
Shortly you need to add ExpandablePanel node control to the treeview, handle MeasureCustomArea event and return the height of your custom content then handle PaintCustomArea and draw your custom node content.
Finally you need to enable SoftSelect hover style:
Code: [Select]
tree.Options.Selection.HoverStyle = eHoverStyle.SoftSelect;
That`s all. Flexible TreeView will take care about other things for you.

So return here for a sample project that will show all that in action.
If you have any question feel free to ask us here.

Ruslan

  • Flexible TreeView Team
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 569
Re: Need expandable node tips
« Reply #2 on: December 06, 2008, 05:41:45 PM »
Hello again Jim!

Tomorrow we`ll release the FlexibleTreeView version 1.1 with new cool example MultimediaExplorer which allows to preview image files thumbnails with an EXIF info on the fly! That`s what you asked for.
Please see the attached screen shot.
Download the Flexible TreeView 1.1, install it, run Demo Application and select 'Multimedia files explorer ' example in the left treeview to see all in action.
To know how it works open SampleTemplates/Explorer/MultimediaExplorer/SampleMultimediaExplorer.cs file and find tvSampleContent_MeasureNodeControlCustomArea and tvSampleContent_PaintNodeControlCustomArea methods. The first one doing a node`s custom area measuring while the second method is actually drawing a custom content area.

If you have any question feel free to ask us here.
« Last Edit: December 09, 2008, 05:30:37 PM by Ruslan »

Jim

  • Guest
Re: Need expandable node tips
« Reply #3 on: December 08, 2008, 08:32:32 AM »
Looks impressive. Thanks for the help.
 

Copyright © 2006-2012 ARMSoft. All rights reserved.