Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Highlighter Question
Message
De
12/07/2002 12:44:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00677892
Message ID:
00678114
Vues:
23
>You have the positive values in non-higlighted rows as black and red if negative, right?
Yup.

>In highlighted row, if the active cell is in CRAmount column it appears white on blue,
Yup.

>and if the active cell is in some other column, the CRAmount column cell appeard black on blue, correct?
Nope. When the active cell is in a different column, a credit amount is bold red on blue background. When the active cell is in a different column, a debit (positive) amount is bold black on blue background. Whilst it is behaving as I am instructing, the color pairing(s) are yuck!

>And you want it the white on blue for the highlighted row, no matter positive or negative?

Not necessarily, but that looks a sight better than it does now. Ideally, I would like to be able to specify a more suitable color pairing for the highlighted row for the column in question. To be honest, I hadn't even noticed the difference in the color pairing when the active cell was in the specified column because all controls in the grid (other than col #1) are Codemine Nofocus'd because the values are non-editable. It was only when I read your comment and clicked into the specified column that I noticed it White on Blue - whoops!

Either way though, the issue remains because ideally, the user will not select the column in question and remains locked in column #1 throughout, in which this requirement is not a consideration as it is simply an ID column.

Thanks for your consideration.

Best


>
>>Hi Nick:
>>
>>Nice to know I have the top brains on the case <s> !
>>
>>Thanks.
>>
>>>Hi Gary,
>>>
>>>Looking at it... please wait...
>>>:)
>>>
>>>>In the onPostSetDynamicColor method, I have code like this :-
>>>>
>>>>THIS.PARENT.&cHost..Crnamount.DYNAMICFORECOLOR = "IIF(EVALUATE(this.cWorkarea + '.CrnAmount') < 0, RGB(255,0,0), this.ForeColor)"
>>>>
>>>>This sets the foreground color red when we have a negative (credit) balance in the CrnAmount column.
>>>>
>>>>This works fine except I don't like the result in the currently highlighted row. GH, "out of the box", sets the active row as bold White foreground on a Blue background.
>>>>
>>>>Is there a way that I can keep the "standard" color pairing (bold white on blue background) in the highlighted row, but use the dynamic colors as per the instruction in my onPostSetDynamicColor method for all other non-selected rows?
>>>>
>>>>Thanks!
-=Gary
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform