Skip to content

More TreeView questions #89

Closed
Closed

Description

@itg-assistant

Tiago Freitas Leal asked 2016-06-04 19:01:42 UTC

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.

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    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

  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    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

  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

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

  4. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    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

  5. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions