Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Blinking row color on grid
Message
From
10/10/2006 12:01:30
 
 
To
06/10/2006 12:46:38
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Miscellaneous
Thread ID:
01160094
Message ID:
01160896
Views:
7
Hey Larry

You can do it without a timer.

Say you have a grid and one of the columns is CITY and you want to flash the rows that contain a city starting with "B"

In the INIT of your form:
ThisForm.Grid1.SetAll("dynamicbackcolor", "", "Column")

In the PAINT of the form:
thisform.grid1.SetAll("dynamicbackcolor", ;
"IIF(INT(MOD(SECONDS(),2)) = 0, IIF(LEFT(city,1)=[B],RGB(192,192,192),RGB(255,255,255)), RGB(255,255,255))", "Column")
thisform.grid1.refresh

Will flash the apropriate rows.

As others advised - not advisable but anyway up to you.

Also another trick is if you want to display the time on your form without a timer:

Drop a label on the form.

In the Form.Paint add this code:

ThisForm.lblClock.Caption = TIME()

HTH


>I know. I already told him it probably couldn't be done. I didn't want to it with a timer because that would really have been overkill. This guy loves the bells and whistles though...
>
>
>>You serious? That will be annoying real quick, and your customer will ask you to turn it off. Otherwise if you know how to change the colors of a grid row, use a timer to loop through the color of the rainbow ;-)
>>
>>
>>>I have a customer asking me if I can make an entire row on a grid blink when certain conditions exist. I havn't used blinking colors since the DOS days. Does VFP9 have this ability? I havn't been able to find it.
>>>
>>>Thanks,
>>>Larry Morelli
Previous
Reply
Map
View

Click here to load this message in the networking platform