protected colored cells in a grid

General development discussion.

Moderators: Susan Smith, admin, Gabriel

Post Reply
Mikhail
Posts: 87
Joined: Tue Jul 07, 2009 10:26 am
Location: Ukraine

protected colored cells in a grid

Post 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

?
John
Posts: 555
Joined: Sun Apr 26, 2009 8:27 am

Post 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.
Mikhail
Posts: 87
Joined: Tue Jul 07, 2009 10:26 am
Location: Ukraine

Post 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?
John
Posts: 555
Joined: Sun Apr 26, 2009 8:27 am

Post by John »

see

http://brforum.ads.net/viewtopic.php?t= ... c2ab492c12

I believe George answers your question there.
Mikhail
Posts: 87
Joined: Tue Jul 07, 2009 10:26 am
Location: Ukraine

Post 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)
gtisdale
Posts: 218
Joined: Sun Jun 07, 2009 7:54 am
Location: Concord, Massachusetts
Contact:

Post 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
Mikhail
Posts: 87
Joined: Tue Jul 07, 2009 10:26 am
Location: Ukraine

Post 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!
Post Reply