Complex Grid Field Styles or Exceptions
Mayada Al-Kishtini
malkishtini at gmail.com
Mon Sep 11 13:01:34 EDT 2017
Hi Michael,
I'm wondering if we could use this approach to apply the same change to all
objects on one row.
Something like:
Do
iList.$sendall(iGridRef.$objs.$sendall($ref.[iList.$line].$forecolor.$assign
(pick(iList.Value,rgb(x,x,x),rgb(y,y,y),etc))))
I have not tried that myself yet, so not sure if it will work or not.
Thanks,
Mayada
-----Original Message-----
From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf
Of Michael Monschau
Sent: Monday, September 11, 2017 12:31 PM
To: OmnisDev List - English
Subject: Re: Complex Grid Field Styles or Exceptions
Hi Gav,
I demonstrate how to do this in my Notation session at EurOmnis, using a
single line of code to change the foreground colour of a background text
object in the grid.
I am debating whether I should tell you now or make you come to my session
:)
Here is the line strait from my session
Do
iList.$sendall(iGridRef.$objs.Text.[iList.$line].$forecolor.$assign(pick(iLi
st.Value,rgb(x,x,x),rgb(y,y,y),etc)))
the bit [iList.$line] is the grid exception bit so each line gets the
exception based on a value in the list
Hope this helps
Michael
> On 6 Sep 2017, at 15:32, Gavin Foster <omnislist at dataweaver.com> wrote:
>
> Hi $all,
>
> Using Studio 6.03:
>
> In a headed list, a column can have a style() function that changes the
colour of the text dependant on some field value.
> This happens at redraw.
>
> In a complex grid, we have $exceptions which allow us to change the colour
of an individual cell under program control. e.g.
> Do lvGridRef.$objs.<MyFieldName>.<MyLineNumber>.$textcolor.$assign(kRed)
>
> This is a pain to perform for each line in the list, each time the complex
grid is redrawn.
> Is there some way of doing this/applying a style() to a field in a complex
grid?
>
> Rgds,
> Gav
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list