Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid
Message
From
01/03/1999 08:21:32
 
 
To
26/02/1999 14:51:00
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Re: Grid
Miscellaneous
Thread ID:
00192099
Message ID:
00192597
Views:
22
Wiliam:
When I added the row highlighting to my grids, I found that when a user clicked in 1 of the columns of the highlighted row, the foreground and background colors were different than the highlight color. Since I am using the gird as a display/selection tool, knowing which column the user is in is of little value. I added the following code to make certain that the columns have the right color if the active cell. (mvTextbox is a sub-class of Textbox. I still have some grids with the sub-classed textbox and some the VFP textbox.

.SetAll("SelectedBackColor",this.CurRecBackColor,"mvTextbox")
.SetAll("SelectedForeColor",this.CurRecForeColor,"mvTextbox")
.SetAll("BackColor",this.CurRecBackColor,"mvTextbox")
.SetAll("ForeColor",this.CurRecForeColor,"mvTextbox")
.SetAll("SelectedBackColor",this.CurRecBackColor,"Textbox")
.SetAll("SelectedForeColor",this.CurRecForeColor,"Textbox")
.SetAll("BackColor",this.CurRecBackColor,"Textbox")
.SetAll("ForeColor",this.CurRecForeColor,"Textbox")

HTH
Mike
Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform