TreeView control : Is there somthing like Redraw = False (MSFlexGrid) 
Author Message
 TreeView control : Is there somthing like Redraw = False (MSFlexGrid)

Hi there,

I am using the MS Tree View control (VB5 - sp3)

This treeview can contain a large no. of nodes.

During the loading of the information I do not want the Treeview to be
refreshed every time. This wastes processing time.

Is there any way , like with the MS flex grid, that you could set Redraw =
False (or some thing allong those lines).

Thanks in advance for your help.

Phillip : ))
______________________________________________

Thanks



Sat, 13 Jan 2001 03:00:00 GMT  
 TreeView control : Is there somthing like Redraw = False (MSFlexGrid)

yes there are several ways to achieve this. firstly, you keep the tree-view
visible = false while it is being populated. Secondly do not use the
Node.EnsureVisible when you create a node.

Wasu

Quote:

> Hi there,

> I am using the MS Tree View control (VB5 - sp3)

> This treeview can contain a large no. of nodes.

> During the loading of the information I do not want the Treeview to be
> refreshed every time. This wastes processing time.

> Is there any way , like with the MS flex grid, that you could set Redraw =
> False (or some thing allong those lines).

> Thanks in advance for your help.

> Phillip : ))
> ______________________________________________

> Thanks

  vcard.vcf
< 1K Download


Sat, 13 Jan 2001 03:00:00 GMT  
 TreeView control : Is there somthing like Redraw = False (MSFlexGrid)
Hi

 I answered this one last month (people really should check the
www.dejanews.com site more often)

Here goes...

There are several ways of speeding up the processing of the treeview

1. Lock the window on any large update (ie. Cut / Copy / Paste)

I use code like :

Private Sub LockTreeView(ByVal bLock as Boolean)

    If bLock Then
        SendMessageLong tvTree.hwnd, WM_SETREDRAW, 0, ByVal 0&
    Else
        SendMessageLong tvTree.hwnd, WM_SETREDRAW, 1, ByVal 0&
    End If

End Sub

Which works really quickly.

2. Remove items from the Nodes collection in reverse order.

I can't remember why this works quicker than standard (Microsoft did have a
document about it I think). Anyway, if you delete the nodes in reverse
order, you'll also find a speed increase (several 100% if I remember)

Good Luck

Chris Eastwood
Software Engineer
ACNielsen Ltd


Quote:
>Hi there,

>I am using the MS Tree View control (VB5 - sp3)

>This treeview can contain a large no. of nodes.

>During the loading of the information I do not want the Treeview to be
>refreshed every time. This wastes processing time.

>Is there any way , like with the MS flex grid, that you could set Redraw =
>False (or some thing allong those lines).

>Thanks in advance for your help.

>Phillip : ))
>______________________________________________

>Thanks



Sun, 14 Jan 2001 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. TreeView control : Is there somthing like Redraw = False (MSFlexGrid)

2. TreeView control : Is there somthing like Redraw = False (MSFlexGrid)

3. LogEvent - Am I missing somthing?

4. how to resize the treeview control or msflexgrid control when runing

5. VB6 SP5 Treeview/Listview redraw problem

6. TreeView.enabled = False

7. TreeView.Enabled = False

8. Visual Liking in .Net using TREE VIEW control

9. no one likes the DATA CONTROL

10. SetSysColors(1, COLOR_WINDOW, nMyTransColor) , without redraw or block redraw

11. I am trying to update a record, i am not using data control

12. I am trying to update a record, i am not using data control

 

 
Powered by phpBB® Forum Software