Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highlight current grid row
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00143073
Message ID:
00143078
Vues:
20
>3) Even with this code, when I click on the grid, the clicked cell changes color (I really want the grid to mimic a listbox). What is the easiest way to prevent this? I suppose by changing the colors of the control, but since textboxes, etc., don't have DynamicXXXX color properties, it seems this will need doing whenever the cell gets the focus.

I've found executing this in the grid's Init to work fairly well:

local lcol
for each lcol in .Columns
with lcol
local lcCtrl
lcCtrl = .CurrentControl
with .&lcCtrl
.ForeColor = this.icCurRecForeColor
.BackColor = this.icCurRecBackColor
endwith
endwith
endfor

I'm open to other suggestions, though.

And there's a noticeable demarcation at the end of the selected cell.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform