Page 1 of 1
protected colored cells in a grid
Posted: Thu May 06, 2010 10:04 am
by Mikhail
Back to this subject again...
I know that it's possible to create protected colored cells in a grid.
Luis showed me part of their application which uses such cells.
What is the attribute syntax for such a cell?
P/#000000:#FFFFFF greys out the colors,
#000000:#FFFFFF/P doesn't work
?
Posted: Thu May 06, 2010 10:12 am
by John
we use an attribute like [W]LP as an attribute for the column and then long before that we use a screen (config) statement to set the colors of the [W] attribute. [W] is our standard for labels and the screen as a whole.
-john b.
Posted: Thu May 06, 2010 10:32 am
by Mikhail
Tried
execute 'config attribute [a]/[BLACK]:[Aliceblue]'
execute 'config screen N [a]'
let _Fieldforms$(1) =_Fieldforms$(2) ="C 40,[a]LP"
didn't do it for some reason.
Would you please provide a quick example?
Posted: Thu May 06, 2010 11:11 am
by John
Posted: Thu May 06, 2010 11:56 am
by Mikhail
The post you pointed me to answers the question of how to apply an attributes to grids, but not the "protected colored" attribute. (Sorry to be a pest)
Posted: Thu May 06, 2010 12:02 pm
by gtisdale
Protected fields within a grid do not automatically get a special color as they do outside of a grid. In order to get sepcial coloring you need to print the grid THEN print the grid attributes in a separate pass.
George
Posted: Thu May 06, 2010 12:22 pm
by Mikhail
That was OK in version 4.17L
But starting with BR4.18 and ending with BR4.20d the following was happening:
If you first protect a cell, and later apply color to it, then applying the color would un-protect the cell.
I just tried it with BR4.20F and that is no longer the case, i.e. the cell stays protected after applying color.
So, I finally got my answer. Thanks, y'all!