Menu

#39 Renaming node looses font family, color and size of node’s t

open
nobody
None
5
2010-05-24
2010-05-24
No

Steps to reproduce:
1) Run sample application.
2) Navigate to “Simple Example” tab.
3) Expand root node.
4) Rename Child Node 0 to ”test”.
Expected result: the node is renamed and the font family, size and color are preserved.
Actual result: Font family, text size and color are reset to default for the renamed node.

Discussion

  • Irina Ungureanu

    Irina Ungureanu - 2010-05-24
     
  • Laurent Nicot

    Laurent Nicot - 2010-06-29

    In this sample, only node starting by "Child" are painted in red.

    void _nodeTextBox_DrawText(object sender, DrawEventArgs e)
    {
    if ((e.Node.Tag as MyNode).Text.StartsWith("Child"))
    {
    e.TextColor = Color.Red;
    e.Font = _childFont;
    }
    }

    Expected result: OK

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.