I'm almost done with a nice app that has about 50 forms. Now mgmt wants the forecolor property of all textboxes, combos, editboxes etc to be blue rather than black.
I could go one by one, but that over 1000 fields!!
I have the following code on a timer button
FOR x = 1 TO thisform.ControlCount
WITH thisform.controls(x)
IF INLIST (.CLASS,"Textbox","Combobox","Spinner","Checkbox","Editbox"
.FORECOLOR=RGB(0,0,255)
.disabledFORECOLOR=RGB(0,0,0)
ENDIF
ENDWITH
ENDFOR
I had to add the base class 'check' to ensure that the property had the forecolor,disabledbforecolor properties.
Here is the problem. This will not work with pageframes as the form controlcount does not include the controls within the pageframe. Is there any way to address the pageframes controls directly or do I have to loop through each page in the pageframe and then referecing each control to update the properties? Any code suggestions?
Thanks
MW
I could go one by one, but that over 1000 fields!!
I have the following code on a timer button
FOR x = 1 TO thisform.ControlCount
WITH thisform.controls(x)
IF INLIST (.CLASS,"Textbox","Combobox","Spinner","Checkbox","Editbox"
.FORECOLOR=RGB(0,0,255)
.disabledFORECOLOR=RGB(0,0,0)
ENDIF
ENDWITH
ENDFOR
I had to add the base class 'check' to ensure that the property had the forecolor,disabledbforecolor properties.
Here is the problem. This will not work with pageframes as the form controlcount does not include the controls within the pageframe. Is there any way to address the pageframes controls directly or do I have to loop through each page in the pageframe and then referecing each control to update the properties? Any code suggestions?
Thanks
MW