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.
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.
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.
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
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).
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
Thanks, Tiago
I have logged WJ-7135 for missing tree view methods.
Best regards
Frank