Blinking text refreshes. 
Author Message
 Blinking text refreshes.

I have been writing a program in VB5 Enterprise and I'm running into an
annoying little problem.  I am using the status bar to display the usual info
(progress bar, date, time and file paths)  The problem is that the updating
information causes irregular blinking of the text in the bar.  For example, I'm
displaying hh:mm:ss AMPM in one segment, and each new second seems to have an
80% chance of causing all of the rest of the segments to dissapear for a
fraction of that second.  I've tried using rapid refreshes from a timer eg.
statusbar.refresh, but this seems to have no effect.  Is there a way to quiet
this effect?  It has a really unprofessional look in an otherwise attractive
interface.
Regards,
Stephen


Thu, 01 Feb 2001 03:00:00 GMT  
 Blinking text refreshes.
Usually were the blinking comes from is if you update a control with the
same text. the best way to stop this is to compare the new value with the
current value and update it only if necessary.

If strNewText <> Control.Text then Control.Text = strNewText


Quote:
>I have been writing a program in VB5 Enterprise and I'm running into an
>annoying little problem.  I am using the status bar to display the usual
info
>(progress bar, date, time and file paths)  The problem is that the updating
>information causes irregular blinking of the text in the bar.  For example,
I'm
>displaying hh:mm:ss AMPM in one segment, and each new second seems to have
an
>80% chance of causing all of the rest of the segments to dissapear for a
>fraction of that second.  I've tried using rapid refreshes from a timer eg.
>statusbar.refresh, but this seems to have no effect.  Is there a way to
quiet
>this effect?  It has a really unprofessional look in an otherwise
attractive
>interface.
>Regards,
>Stephen



Fri, 02 Feb 2001 03:00:00 GMT  
 Blinking text refreshes.
Quote:
>Usually were the blinking comes from is if you update a control with the
>same text. the best way to stop this is to compare the new value with the
>current value and update it only if necessary.

-- Gary

Unfortunately, this solution isn't working in this case.  I've placed an
if/then to eliminate unnecessary updates and the panel still blinks.  The
blinking always occurs -at- the change of numbers.  Three or four changes will
go by without a blink, then the next dozen (or so), changes will blink the text
in the panels, along with portions of the bevel shading (usually the upper
part).

I've also noticed that the other panels seem to be added to the blinking in
procession.  For example...
No blink (3 or 4 times)
Panel 4 blinks (2 or 3 times)
Panel 3 and 4 blink  (2 or 3 times)
Panel 2, 3, and 4 blink  (2 or 3 times)
Panel 1, 2, 3, and 4 blink  (2 or 3 times)
No blink (3 or 4 times)
Etc.
It doesn't follow this pattern every cycle, but it is usually similar.

Judging by the number of Email responses asking "Does the if/then fix work?"  I
think I'm not alone in this.  I apologise for not responding to each of you,
but there were just too many messages, so I'm posting your answer here.
"Unfortunately, no."
Regards,
Stephen



Sun, 04 Feb 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. BLink blink blink

2. Refreshing picture box causing blinking label

3. DBGrid Refresh Causes Blinking (during Repaint)

4. Blinking Text???

5. Blinking button text

6. BLINKING TEXT?

7. blinking cursor in text boxes????????

8. rich text box and blinking characters

9. Inverted and blinking text?

10. Blinking Text/Label

11. Text box ... change the blinking cursor

12. making labels and/or text fields blink

 

 
Powered by phpBB® Forum Software