Here is a long way.... best used if only a local form will control the tbx....
Create a subclass mycheckbox.
Add properties:
linktbx1 C
linktbx2 C
linktbx3 C
etc....
Add method called Refreshlinks... call from your class refresh() on the form in question...
IF !EMPTY(THIS.linktbx1)
linktbx1.enabled = myconditionismet
(i.e. whatever you detemine turns off the tbxs)
ENDIF
IF !EMPTY(THIS.linktbx2)
etc...
This is one way... there are better ways, I am sure... but maybe it will give you a start...
HTH
Ric
>Hi All,
>
>On a form I have a check box which will enable/disable two textboxes according to the checkbox state. This has also to relect when the records pointer is moved.
>
>I have codes in the refresh of the textbox like
>
>this.enabled = !thisform.chkbox.value
>
>
>and in the check box I have:
>
>thisform.textbox1.refresh()
>thisform.textbox2.refresh()
>
>
>now if I add a new control which depends on this checkbox I'll have to code two places again. Any way I can co-ordinate things well from one place and fixed codes in say for eg. the checkbox, so when I add a new control I have to change at one place to get the desired effects.
>
>Thanks in advance