Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview
Message
De
19/02/2004 02:43:51
 
 
À
18/02/2004 00:38:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00878196
Message ID:
00878632
Vues:
20
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform