Demonic Posted October 13, 2008 Posted October 13, 2008 I was wondering hpw to constantly update a treeview with new information that is retrived from a file. some of the data will stay that same but uhm simply be moved to a different section of the treeview. so how do i delete everything in the treeview and re add it(without major flicker).
PsaltyDS Posted October 13, 2008 Posted October 13, 2008 I was wondering hpw to constantly update a treeview with new information that is retrived from a file. some of the data will stay that same but uhm simply be moved to a different section of the treeview. so how do i delete everything in the treeview and re add it(without major flicker).Use _GUICtrlTreeView_BeginUpdate() before starting your update, then _GUICtrlTreeView_EndUpdate() after it's done. The display of the control will not be refreshed while new data is put in, so no flicker. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Demonic Posted October 14, 2008 Author Posted October 14, 2008 the same data may be added more than once and is updated every 3 seconds so if i do not first delete the data the same data is put on the list twice, and if i delete all data the section collapses(anoying to have ti close every 3 seconds) so i have it re expand but it gives a flickeryish effect.
PsaltyDS Posted October 14, 2008 Posted October 14, 2008 the same data may be added more than once and is updated every 3 seconds so if i do not first delete the data the same data is put on the list twice, and if i delete all data the section collapses(anoying to have ti close every 3 seconds) so i have it re expand but it gives a flickeryish effect.Too much talk, not enough code. The text of treeview nodes can be changed without deleting them by _GUICtrlTreeView_SetText(). The logic of your loop should prevent adding multiple instances of nodes that already exist, and should prevent any update at all if nothing has changed. You have a logic issue with your update process.Post a short reproducer script that creates a treeview with your options, and the update loop, so we can see what you are doing. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Zedna Posted October 14, 2008 Posted October 14, 2008 the same data may be added more than once and is updated every 3 seconds so if i do not first delete the data the same data is put on the list twice, and if i delete all data the section collapses(anoying to have ti close every 3 seconds) so i have it re expand but it gives a flickeryish effect.Look at _GUICtrlTreeView_Expand() Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now