I seem to have found it in the Data Grid script. It seems to be located in this 
part of the script.

private command _table.DrawWithProperties pSetVScrollTo, pForceRefresh
    ## We only scroll by entire records so if any scrolling is supposed to 
occur then
    ## start 1 higher
    if pSetVScrollTo > 0 then add 1 to sTableObjectsA["base sequence for 
visible controls"]
    
    _table.DrawControlsInRealTime pForceRefresh
    if sTableObjectsA["base sequence for visible controls"] mod 2 is 
kAlternatingRowModValue then
        --set the top of graphic "dgAlternatingRows" of me to the top of group 
"dgAlternatingRowsMask" of me - sControlHeights  
    else
        set the top of graphic "dgAlternatingRows" of me to the top of group 
"dgAlternatingRowsMask" of me
    end if
end _table.DrawWithProperties

The code commented out seems to do the trick and does not on the face of it 
affect anything else.

--set the top of graphic "dgAlternatingRows" of me to the top of group 
"dgAlternatingRowsMask" of me - sControlHeights 

All the best

Terry

On 28 Jan 2014, at 14:30, dunb...@aol.com wrote:

> Error
> 
> 
> Should have been;
> 
> 
> set the dgProp["alternate row colors"] of grp 1 to "false"
> 
> 
> 
> Craig
> 
> 
> -----Original Message-----
> From: dunbarx <dunb...@aol.com>
> To: use-livecode <use-livecode@lists.runrev.com>
> Sent: Tue, Jan 28, 2014 9:29 am
> Subject: Re: Alternating Row Colors of a Data Grid
> 
> 
> I am fond of saying I am no DG expert, even though I use them a lot.
> 
> 
> I do not think so. I know you can:
> 
> 
> set the dgProp["alternate row colors"] of grp "yourDG" to "true"
> 
> 
> Which will lose the effect entirely, but I do not know if you can then 
> manually 
> set the hilite color of each row on the fly. But you could overlay a group of 
> partially blended colored buttons, say, that would give the same effect.
> 
> 
> Craig Newman
> 
> 
> 
> -----Original Message-----
> From: Terence Heaford <t.heaf...@btinternet.com>
> To: How to use LiveCode <use-livecode@lists.runrev.com>
> Sent: Tue, Jan 28, 2014 6:56 am
> Subject: Alternating Row Colors of a Data Grid
> 
> 
> When you select “alternating row colours” of a Data Grid and you scroll the 
> Data 
> 
> Grid the colours of the rows alternate as it scrolls.
> 
> Does anyone know how to have the alternate row colours but for these colours 
> to 
> remain fixed as the Data Grid Scrolls?
> 
> All the best
> 
> Terry
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to