-
December 19th, 2017, 10:52 AM
#1
[RESOLVED] Updating a Static 'Text' Control without flicker ?
Hi All,
I have a simple input/output loop that updates a static control on each iteration, I'm seeing a lot of flickering which I don't like, the behaviour I'm looking for is like that of a static text control with the SS_SIMPLE style set, text is rendered without flickering, presumably without erasing the background? however there will be times where I would like to erase the background and completely reset the text... How can this be achieved ?
Many thanks in advance!
-
December 20th, 2017, 11:22 AM
#2
Re: Updating a Static 'Text' Control without flicker ?
How often do you refresh this static control? Every second?, Millisecond?
Victor Nijegorodov
-
December 20th, 2017, 03:22 PM
#3
Re: Updating a Static 'Text' Control without flicker ?
Every Millisecond or so, I haven't managed to reduce the he flicking by updating less frequently but there still remains flicker... Would this be a owner drawn solution ?
-
December 20th, 2017, 03:23 PM
#4
Re: Updating a Static 'Text' Control without flicker ?
-
December 20th, 2017, 03:28 PM
#5
Re: Updating a Static 'Text' Control without flicker ?
Originally Posted by Danage
Every Millisecond or so, I haven't managed to reduce the he flicking by updating less frequently but there still remains flicker... Would this be a owner drawn solution ?
But it is senseless to it so often!
Try to update it in response to WM_TIMER every second.
Victor Nijegorodov
-
December 20th, 2017, 03:29 PM
#6
Re: Updating a Static 'Text' Control without flicker ?
Originally Posted by Danage
Edit: I have managed *
Good to know it!
And how?
Victor Nijegorodov
-
December 21st, 2017, 10:33 AM
#7
Re: Updating a Static 'Text' Control without flicker ?
A second was a little to slow for me, worker thread Posts() a user defined message to the GUI every half a second or so... zero flicker!! Many thanks for your time Victor! Merry Christmas and happy new year to you!
-
December 21st, 2017, 11:37 AM
#8
Re: [RESOLVED] Updating a Static 'Text' Control without flicker ?
You are welcome!
And I wish you happy new year and Merry Christmas too!
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|