Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid
Message
De
01/03/1999 08:21:32
 
 
À
26/02/1999 14:51:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Re: Grid
Divers
Thread ID:
00192099
Message ID:
00192597
Vues:
24
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform