Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement