Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicBackColor help with columns.
Message
From
27/09/2001 15:02:05
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00561583
Message ID:
00561610
Views:
21
Thanks, that worked. Just wasn't sure about the Setall vs the columns call.

Pete

>>I have a routine for a grid that highlights the a particular column entirely with one color. It also highlights the current row. The problem is, the row highlight "goes under" the column highlight. I need to reverse that and because of the IIF in the following lines, I can't. I need help figuring out how to change these lines.
>>
>>
>>curRowRec=recno()
>>this.SetAll("DynamicBackColor","IIF(recno()=curRowRec,RGB(0,128,255),RGB(255,255,255))","Column")
>>thisform.grid1.columns(tagno()+1).DynamicBackColor="RGB(0,255,0)"
>>
>>Thanks
>Add IIF to the current collumn DynamicBackColor also
thisform.grid1.columns(tagno()+1).DynamicBackColor= ;
>       "IIF(recno()=curRowRec,RGB(0,128,255),RGB(0,255,0))"
>
I would also suggest that you make curRowRec a property of your grid base class or form. Otherwise it could get out of scope.
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform