Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding treeview to refresh
Message
From
29/09/1997 19:46:41
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00051562
Message ID:
00052309
Views:
38
>>>>When I build my treeview, is there a way to have the refresh?
>>>Probably the only way to refresh it - to clear nodes and refill it
>>again -
>>if it is that what you mean.
>>
>>It my case, depending on some actions, I need to change the bitmaps.
>>So, I
>>can't empty the treeview as it won't be useful because only the
>>bitmaps
>>will change.
>
>What about just updating the Nodes(x).Image, Nodes(x).ExpandedImage, or
>Nodes(x).SelectedImage properties to contain the new image number? (I
>haven't tried this).

What I did, it this:

ThisForm.LockScreen=.T.
ThisForm.oTree.Left=-2000
...
ThisForm.oTree.Left=25
ThisForm.LockScreen=.F.

This avoid the tree view to refresh. I heard this at DevCon. The treeview is not affected by LockScreen. However, I have LockScreen here in order to make sure no other control will be refresh, just in case.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform