You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I presume the TreeView is pretty ready. I also presume it follows closely the Windows Forms TreeView control.
I'm porting my BoundTreeView control from Windows Forms to Wisej. Since Wisej follows closely Windows Forms, I think this would be easier than port the VWG version.
I'll list some properties that are missing on the Wisej control.
public bool HideSelection { get; set; }
Member of System.Windows.Forms.TreeViewSummary:
Gets or sets a value indicating whether the selected tree node remains highlighted even when the tree view has lost the focus.
public bool HotTracking { get; set; }
Member of System.Windows.Forms.TreeViewSummary:
Gets or sets a value indicating whether a tree node label takes on the appearance of a hyperlink as the mouse pointer passes over it.
public bool ShowNodeToolTips { get; set; }
Member of System.Windows.Forms.TreeViewSummary:
Gets or sets a value indicating ToolTips are shown when the mouse pointer hovers over a System.Windows.Forms.TreeNode.
public System.Windows.Forms.TreeNode GetNodeAt(Point pt)
Member of System.Windows.Forms.TreeViewSummary:
Retrieves the tree node that is at the specified point.Parameters:
pt: The System.Drawing.Point to evaluate and retrieve the node from.
Returns:
The System.Windows.Forms.TreeNode at the specified point, in tree view (client) coordinates, or null if there is no node at that location.
If this method is needed to manage ItemDrag/DragDrop events, we have a new property DragEventArgs.DropTarget that refers to the node that is the target of a drag drop operation (unlike WinForms where you had to find it using GetNodeAt).
The ImageIndex and ImageKey properties refer to the index or key name of the image in the associated ImageList. The TreeView can set node images at the TreeView level or the single node by referring to the TreeView.ImageList. When adding images to the ImageList, you can specify either an Image object or an ImageSource name/url/file. The ImageList also lets you normalize the size of all the included images.
Activity
itg-assistant commentedon Jun 12, 2026
Frank (ITG) answered 2016-06-05 11:09:01 UTC
Thanks, Tiago
I have logged WJ-7135 for missing tree view methods.
Best regards
Frank
itg-assistant commentedon Jun 12, 2026
Ewan Walker answered 2017-12-29 10:32:42 UTC
What is the Wise J equivalent of
private void trv_Reports_BeforeExpand(object sender, TreeViewCancelEventArgs e)
{
if (!e.Node.Loaded)
{
LoadReports(e.Node.Nodes, e.Node.Tag as string);
e.Node.Loaded = true;
}
}
Loaded does not exist
Thanks
Ewan
itg-assistant commentedon Jun 12, 2026
Tiago (ITG) answered 2017-12-29 10:51:45 UTC
Issue WJ-7315 was completed 20 Jun 2016.
Concerning
System.Windows.Forms.TreeNode GetNodeAt(Point pt)
If this method is needed to manage ItemDrag/DragDrop events, we have a new property DragEventArgs.DropTarget that refers to the node that is the target of a drag drop operation (unlike WinForms where you had to find it using GetNodeAt).
itg-assistant commentedon Jun 12, 2026
Ewan Walker answered 2017-12-29 12:22:59 UTC
OK I have worked round the Loaded issue
However I cant get images to display.
Using
node.ImageKey = "Images/Folder.gif";
node.OpenedImageKey = "Images/Folder.gif";
Any ideas?
Thanks
Ewan
itg-assistant commentedon Jun 12, 2026
Luca answered 2017-12-29 14:25:06 UTC
The ImageIndex and ImageKey properties refer to the index or key name of the image in the associated ImageList. The TreeView can set node images at the TreeView level or the single node by referring to the TreeView.ImageList. When adding images to the ImageList, you can specify either an Image object or an ImageSource name/url/file. The ImageList also lets you normalize the size of all the included images.