[8.52a x64] Flickering text in CRC-check job window

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

[8.52a x64] Flickering text in CRC-check job window

Post by *MaxX »

TC 8.52a x64 at Windows 7 x64s SP1, video: AMD HD7770 1GB, driver version: 15.11 Crimson Edition.

I see flickering text in CRC-check window while job works.
See video here:
https://www.youtube.com/watch?v=NWGhhoAUIT4
or here:
http://www73.zippyshare.com/v/sIE2DcJo/file.html

There's no flicker when job is done and I scroll text manually.

It looks like some lines are temporary being lost for 1 or 2 frames and then appear again.

Is it bug or feature?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, it happens when TC deletes a line and re-adds it with different percent value.
Author of Total Commander
https://www.ghisler.com
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2ghisler(Author)
Can you make it not delete all the lines, but just clear them? (leave some empty space instead the removed line)
It would be more comfortable to read scrolling text.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I don't think that's possible.
Author of Total Commander
https://www.ghisler.com
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

Why not?
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

There is LB_ADDSTRING and LB_INSERTSTRING for Listboxes to add strings at the end or insert at any position, but there is no LB_REPLACESTRING. So TC has to call delete and then insert to replace a string. The alternative would be to use an owner-drawn listbox, but this will cause other problems.
Author of Total Commander
https://www.ghisler.com
ErikSP
Junior Member
Junior Member
Posts: 2
Joined: 2016-01-14, 01:04 UTC

Post by *ErikSP »

You could use WM_SETREDRAW before the delete/insert.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, but when I set it back to "ON", this does not cause an automatic redraw.
Author of Total Commander
https://www.ghisler.com
ErikSP
Junior Member
Junior Member
Posts: 2
Joined: 2016-01-14, 01:04 UTC

Post by *ErikSP »

Ah, that's odd, must be some LISTBOX quirk. I'm using WM_SETREDRAW extensively for other controls, and haven't seen issues with it.
Post Reply