Populating listboxes should be done without intermediate upd
Moderators: Hacker, petermad, Stefan2, white
Populating listboxes should be done without intermediate upd
When populating listboxes, constantly updating the display really slows down the whole interaction. It also looks weird when the scrollbar “shoots upwards”. The following article has some coverage on how to avoid it:
http://blogs.msdn.com/oldnewthing/archive/2004/06/10/152612.aspx
And even if it’s suggested that this only matters for hundreds of items, I think you’ll see improvements with far less items in the list.
http://blogs.msdn.com/oldnewthing/archive/2004/06/10/152612.aspx
And even if it’s suggested that this only matters for hundreds of items, I think you’ll see improvements with far less items in the list.
Well, i don't know if Christian will use it but it is certainly helpful to me. I have used LockWindowUpdate in some of my apps. Thanks for the info.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
- ghisler(Author)
- Site Admin
- Posts: 50830
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Hmm, I'm already setting redraw to false in the file panels...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50830
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I do it separately for each added branch. I'm not sure about deleting, I will check it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
2 now:
Configuration\Options\Refresh: Maybe this is turned on? Try turning it off, then restart TC (i think it's necessary).
Configuration\Options\Refresh: Maybe this is turned on? Try turning it off, then restart TC (i think it's necessary).
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Argh! Please excuse my terrible introduction. What I meant was for other listboxes like the “Choose command” dialogs listboxes, or the start menu editor. Really sorry about not being clear. It’s of course very clear to me what I mean, but I sometimes don’t realize that it isn’t going to be clear to other people.
- ghisler(Author)
- Site Admin
- Posts: 50830
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I see - I don't use it in these cases because there are only a few items, so it's not time-critical. With file lists, there can be several 10'000 items, which would take much longer when redrawing isn't turned off.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com