View Full Version : Two treeview questions :)
Lukashi 07-01-2008, 10:12 PM Hey guys,
I have two treeview questions,
The first is if it is possible to add multiple buttons to the treeview, much like in the layer manager in 3ds max.
The second is, is it possible to add a delay to the tooltiptext of a treenode. When I use a tooltip it auto pops up instead of waiting.
Thanks so much for reading,
Cheers,
Lukas
|
|
RustyKnight
07-03-2008, 01:30 AM
What type of treeview are you using?? ActiveX or DotNet??
is possible to add multiple buttons to the treeview, much like in the layer manager in 3ds max.My initial feeling would be, probably not through mxs.
If you are looking for a listview/treeview hybrid (which the layer manager is), you will probably need to look for a 3rd part control as I don't think there is one built into native dotnet...but I could be mistaken.
You might also be able to capture some of the mouse press events and based on the location (ie if it's on the icon) perform some action.
is it possible to add a delay to the tooltiptext of a treenode. When I use a tooltip it auto pops up instead of waiting.I had a very quick look, but I couldn't find a method that might provide this functionality. It might be possible to control it from some other property in dotnet, but I don't know where...
Shane
Lukashi
07-03-2008, 01:41 AM
Hey Thanks for the reply,
Yep Im using the standard dot net treeview, I already perform actions on the one icon provided but its not enough to make multiple buttons since its so small.
My only thought on the delay was to use the NodeMouseHover method and generate a tooltip using that but I have not played with it yet...
ZeBoxx2
07-03-2008, 04:33 AM
oddly enough, somebody asked me about tooltips on our online chat just tonight.
-- where 'listview_rollout.lv_objects' should be your dotnetControl
myTooltip = dotnetObject "System.Windows.Forms.ToolTip"
myTooltip.setTooltip listview_rollout.lv_objects "Testing"
myTooltip.automaticDelay = 2000
Note that this does limit you to putting it on a control. However, the mouseOver and cursor positions should easily allow you to adjust the string being used to pop up a more specific tooltip for a specific region within a control.
Lukashi
07-03-2008, 04:51 AM
ZeBoxx2- Thanks! Now to fine tune those timers :)
CGTalk Moderation
07-03-2008, 04:52 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.