Re: Dynamically setting HighlightBackColor
- From: "Stefan Wuebbe" <stefan.wuebbe@xxxxxx>
- Date: Tue, 8 Jan 2008 08:14:02 +0100
Would it help to use a custom method?, e.g.:
...ColumnX.DynamicWhatever = "This.customMethod()"
Proc customMethod
Do Case
Case X
&& additional code
Return RGB(255,255,255)
Case Y
Return ...
hth
-Stefan
"Andy Trezise" <andy@xxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:%23%23c3%23YWUIHA.476@xxxxxxxxxxxxxxxxxxxxxxx
Is it possible to set this grid HighlightBackColor property dynamically
much in the same way as you can on a grids column?
I have a grid with HighlightStyle = 2 and AllowCellSelection = .f. so the
grid gives the impression of being readonly with the current row having a
permanent back/fore colour as specified.
I use DynamicForeColor & DynamicBackColor on each of the columns so that I
can then allow the user to highlight required rows (I keep a track of the
rows selected in code).
The problem is, my grid HighlightBackColor takes precedence over the
Column.DynamicBackColor and thus when the current record is selected the
colour don't actually change until I move to another record on the grid.
Hope that makes sense!
--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------
.
- References:
- Dynamically setting HighlightBackColor
- From: Andy Trezise
- Dynamically setting HighlightBackColor
- Prev by Date: VFP9 SP2: Restored project backup to newly installed Vista Ultimate - PROBLEMS!
- Next by Date: Re: VFP9 SP2: Restored project backup to newly installed Vista Ultimate - PROBLEMS!
- Previous by thread: Dynamically setting HighlightBackColor
- Next by thread: Re: Problem with report
- Index(es):
Relevant Pages
|