More TreeView questions

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.

 

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

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

  • You must to post comments
0
0

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).

  • You must to post comments
0
0

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

  • You must to post comments
0
0

Thanks, Tiago

I have logged WJ-7135 for missing tree view methods.

Best regards
Frank

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.