I am not sure you would be able to achieve desired result using FontUnderline and ForeColor. May be it's better to try with DynamicCurrentControl instead.
>Ok, this now works fine. Thanks Sergey & Naomi
>
>
>
>WITH This.Columns[4]
>
>.DynamicForeColor = "IIF(WorkTable.Scanned OR WorkTable.Status = 'R', RGB(0,0,255), RGB(0,0,0))"
>.DynamicFontUnderLine = "WorkTable.Scanned OR WorkTable.Status = 'R'"
>
>ENDWITH
>
>RETURN
>
>
>
>Now, the text now sorta looks like a hyperlink, except that the underline goes
>wider than the text:
>
>
> "MyCaption_____"
>
>
>
>Also, how do I change the mouse pointer this way also?
>
>
>
>
>>You have to store expression that will be evaluated during refresh. See correction in code below.
>>
>>>I tried this code in the Grid's Init. No effect
>>>
>>>
>>This.Columns[4].DynamicForeColor = ;
>> [IIF(WorkTable.Scanned OR WorkTable.Status = "R", RGB(0,0,255), RGB(0,0,0))]
>>>
>>>
If it's not broken, fix it until it is.
My Blog