General information
Category:
ActiveX controls in VFP
Hello,
you could speed it up a bit
here are some tips ..
-work directly with the Nodes Collection to add nodes ..
-move the treeview off the screen before adding nodes (this speeds up treeview's internal repainting)
e.g.
LOCAL loTree, loNodesCol, lnOldLeft, lnOldTop
loTree = THISFORM.SomeTreeView
loNodesCol = loTree.Nodes
THISFORM.LockScreen = .T.
lnOldLeft = loTree.Left
lnOldTop = loTree.Top
loTree.Left = 10000
loTree.Top = 10000
SCAN
loNodesCol.Add(.......)
ENDSCAN
loTree.Left = lnOldLeft
loTree.Top = lnOldTop
THISFORM.Lockscreen = .F.
Regards
Christian
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only