Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlight current grid row
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00143073
Message ID:
00143078
Views:
19
>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
Map
View

Click here to load this message in the networking platform