Message 1 of 12
TreeView label edit in a palette
Not applicable
08-25-2005
11:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My .NET application creates a new PaletteSet using a user control that has a
TreeView on it. The TreeView allows label editing, but once you are in label
editing mode, the control does not respond to either ESC or ENTER. I seem to
recall having to deal with this issue in a similar ObjectARX application,
but I'm not sure how to fix it in .NET.
Below is a snippet of code that demonstrates this issue:
With New Autodesk.AutoCAD.Windows.PaletteSet("Test Palette")
Dim objTreeView As New System.Windows.Forms.TreeView
With objTreeView
.Dock = Windows.Forms.DockStyle.Fill
.LabelEdit = True
.Nodes.Add("Edit this node")
End With
.Add("Test Palette", objTreeView)
.Visible = True
End With
Any ideas?
Scott
TreeView on it. The TreeView allows label editing, but once you are in label
editing mode, the control does not respond to either ESC or ENTER. I seem to
recall having to deal with this issue in a similar ObjectARX application,
but I'm not sure how to fix it in .NET.
Below is a snippet of code that demonstrates this issue:
With New Autodesk.AutoCAD.Windows.PaletteSet("Test Palette")
Dim objTreeView As New System.Windows.Forms.TreeView
With objTreeView
.Dock = Windows.Forms.DockStyle.Fill
.LabelEdit = True
.Nodes.Add("Edit this node")
End With
.Add("Test Palette", objTreeView)
.Visible = True
End With
Any ideas?
Scott