General information
Category:
Forms & Form designer
>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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only