Hi all
I have one checkbox with other controls in a form and this checkbox in bound to a field in an updatable view. By default, all the controls in this form are disabled (textbox, combo and checkbox), so the user can’t modify any data. If he wants to modify something, he has to click on a button and all the controls became enabled, to save his modifications, click on OK button and the view is updated and all the controls are disabled again. It’s a very common design.
Now, the appearance of a disable checkbox is very ugly, so instead of disable it, I tried to “ReadOnly” it. If the user click on the checkbox, nothing appear (like it’s suppose to), but in the buffer of the view, the Getfldstate() is changed (dirty record). I don’t want to do a TableRevert(), each time.
If I’m using ReadOnly for a textbox, it’s working ok (no change in the view buffer).
Why is it different for the checkbox?
Thanks in advance.
Nro
I have one checkbox with other controls in a form and this checkbox in bound to a field in an updatable view. By default, all the controls in this form are disabled (textbox, combo and checkbox), so the user can’t modify any data. If he wants to modify something, he has to click on a button and all the controls became enabled, to save his modifications, click on OK button and the view is updated and all the controls are disabled again. It’s a very common design.
Now, the appearance of a disable checkbox is very ugly, so instead of disable it, I tried to “ReadOnly” it. If the user click on the checkbox, nothing appear (like it’s suppose to), but in the buffer of the view, the Getfldstate() is changed (dirty record). I don’t want to do a TableRevert(), each time.
If I’m using ReadOnly for a textbox, it’s working ok (no change in the view buffer).
Why is it different for the checkbox?
Thanks in advance.
Nro