jj 30.08
This commit is contained in:
@@ -1113,20 +1113,23 @@ Public Class frmConstructor_Main
|
||||
#Region "TreeView"
|
||||
|
||||
Public Sub SetSelectedNodeStyle(tncoll As TreeNodeCollection)
|
||||
For Each node As TreeNode In tncoll
|
||||
If NODE_NAVIGATION = False Then
|
||||
For Each node As TreeNode In tncoll
|
||||
|
||||
If node.IsSelected Then
|
||||
node.NodeFont = New Font(TreeViewMain.Font.FontFamily, TreeViewMain.Font.Size, FontStyle.Bold)
|
||||
node.Text = node.Text
|
||||
Else
|
||||
node.NodeFont = New Font(TreeViewMain.Font.FontFamily, TreeViewMain.Font.Size, FontStyle.Regular)
|
||||
End If
|
||||
If node.IsSelected Then
|
||||
node.NodeFont = New Font(TreeViewMain.Font.FontFamily, TreeViewMain.Font.Size, FontStyle.Bold)
|
||||
node.Text = node.Text
|
||||
Else
|
||||
node.NodeFont = New Font(TreeViewMain.Font.FontFamily, TreeViewMain.Font.Size, FontStyle.Regular)
|
||||
End If
|
||||
|
||||
If node.Nodes.Count > 0 Then
|
||||
SetSelectedNodeStyle(node.Nodes)
|
||||
End If
|
||||
If node.Nodes.Count > 0 Then
|
||||
SetSelectedNodeStyle(node.Nodes)
|
||||
End If
|
||||
|
||||
Next
|
||||
End If
|
||||
|
||||
Next
|
||||
TreeViewMain.Refresh()
|
||||
End Sub
|
||||
Private Sub NodeRecursive(ByVal n As TreeNode, searchRecord As Integer)
|
||||
|
||||
Reference in New Issue
Block a user