Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Flashing colours


Message #1 by Alstom <Alstom@v...> on Wed, 23 Oct 2002 03:45:18 +0200
On fast intervals my grid controls normally goes jumpy. I don't like that.
Especially in this case where I just want certain rows to show "flashing"
colours. It might just be the in which I update the rows.

At the moment I'm experimenting with using a timer class in my classes. 
My app is displaying live data in some grid controls.
In the OnTimer Event in the class I check for changes in the data and then
trigger an event to my clients. This event would then refresh the grid
control. This seems to be working fine at the moment. And it saves me from
having to use a Timer Control! 


-----Original Message-----
From: Marco Straforini [mailto:marco.straforini@c...]
Sent: Wednesday, October 23, 2002 8:02 PM
To: professional vb
Subject: [pro_vb] Re: Flashing colours


Why do you hate the Timer control? It does what it is supposed to do...
Sometimes I have even five of them in the same form/control (maybe
not all of them active at the same time) They do not waste any
resources. Just curious...

Marco

> I have a MSFlexgrid control that displays different colours per row. The
program spec requires some of these colours to flash. I achieved this by
using a Timer control and then displaying alternate shades of a certain
colour, say every half of a second. This works but I stubbornly believe
there is a better way (I hate using timer controls :( . 


---
Visual C# - A Guide for VB6 Developers
This book will make it easy to transfer your skills 
from Visual Basic 6 to C#, the language of choice 
of the .NET Framework.
http://www.wrox.com/ACON11.asp?ISBN=1861007175&p2p0059


DISCLAIMER : Volkswagen of South Africa (Pty) Ltd 
                 
Any views expressed in this message are those of the individual sender. 
No liability shall attach whatsoever to VWSA from this communication except 
where the sender is acting on specific authority of VWSA, such authority 
being public record and acknowledged by VWSA by nature of the employee's 
functions. This document may in no way be photocopied, printed, scanned or 
electronically duplicated for any purposes other than that for which it was originally 
intended. 

If you are not the intended recipient of this communication, please discard 
this message and notify VWSA immediately at postmaster@v...

  Return to Index