>>Hi,
>>
>>I have a grid where, when the grid is initiated, one of the column Text control is removed and replaced with a check box. The check box class is defined in the .PRG as follows:
>>
>>DEFINE CLASS chk_print_order AS CHECKBOX
>>
>>
>>Also in the code that instantiate the grid, this column style is set to 1 and then the caption is set to "Print Order"
>>So, at run time, this column looks like a button with text "Print Order". Everything works.
>>
>>There is a very small thing that I would like to change, if possible. When, at run time, I click on any of the "buttons" in this column, the report is printed ok. But the color of the button, after I click on it, changes - slightly. It becomes a little bluewish. If I click on it again, the color is back to the initial color (gray). How can I make this "button" not to change the color after a click?
>>
>>TIA
>
>A checkbox can have three values. What you see is if the value is .null. or 2, depending on whether the value is logical or numeric.
To be picky, .NULL. works on numerics too, and any number x not in -1<x<2 on numerics. (0.5 and -0.9 is unchecked while 1.9999 is checked ) ;)
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]