Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview
Message
From
19/02/2004 02:43:51
 
 
To
18/02/2004 00:38:08
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00878196
Message ID:
00878632
Views:
19
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
Map
View

Click here to load this message in the networking platform