Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox in grid click color change
Message
From
13/12/2020 11:30:20
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
12/12/2020 13:18:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01677545
Message ID:
01677553
Views:
57
>>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.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform