Profile Picture

NTreeList - Automatic Cell ToolTip

Posted By Imanol Yurrebaso 12 Years Ago
Author
Message
Imanol Yurrebaso
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 15, Visits: 3
Hi,

We are using the NTreeList component to show a event log box. I know that tooltips can be set for the headers of the list, but I would also like to show a tooltip when the mouse is over a cell which doesn't have enough space for displaying the full text. Is there a property to set that automatically? I haven't seen anything about it in the examples. And if that doesn't exist, any clue about how to implement it myself?

Thanks in advance.

PS. We are using the 9.11.3.12 version.

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
Hi Imanol,

Could you describe the structure of the nodes and subitems of your NTreeList?
Thanks.

Best Regards,
Nevron Support Team



Imanol Yurrebaso
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 15, Visits: 3
For now, every node is a single line with 4 columns-items (type icon, date, time, description). So, actually, I'm using it more like a Table or a NListView... But the NTreeList examples were so "fancy" that I chose that.

I have attached a screenshot of the component I'm using. Maybe I should use another component instead of NTreeList? The things I need include an image-column, tooltips with long texts, easy row management and being able of focusing the last row.

Thanks for your quick reply.

Attachments
treelist.png (307 views, 20.00 KB)
Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
You can set a tooltip for each node. This tooltip will be displayed for the whole row.
To setup such tooltip you need to do the following:

NTreeListNode node0 = new NTreeListNode();
node0.TooltipInfo.ContentText = tooltipText;

Along with ContextText you can set properties such as HeaderText, FooterText, Opacity etc.

Best Regards,
Nevron Support Team



Imanol Yurrebaso
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 15, Visits: 3
Thank you, that was exactly what I needed.

I have another issue: I want to make the last item of the list always visible, and I will be removing the first items of the list as I add new items in the bottom. Right now I'm playing with the ScrollBar attributes like this:

nTreeList1.ScrollPosition = new Nevron.GraphicsCore.NPoint(0, 60000);

60000 is just a big number to make sure that the scrollbar will always go down to the end (I could use the height of the cells and number of nodes to calculate the exact point, but I think I can skip that operation). That works fine when I add new nodes, but not so fine when I remove items. Is there a better way to manage that Scroll Bar?

Thanks in advance and I hope I'm not asking too much...

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
Hi Imanol,

You can use NTreeList.EnsureVisible(node) method. It actually do similar to what you described in the brackets.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic