>I have a form with a pageframe in it. The pageframe and all its objects are disabled until the user selects to edit. I disable the objects using the setall method. When I do, the labels all show in the disabled color. I want to keep the labels in the enabled color. I tried setting the disabled fore color to 0,0,0 (which is what I have for the enabled color) but the labels show up in a gray color. My back color is a slate blue. Any suggestions?
>Is there a way I can test for the type of object and use the WITH command for setting the enabled for example..
>
>WITH THISFORM.PAGEFRAME1
>IF object#Label
> ENABLED=.F.
>ENDIF
>ENDWITH
Consider the following to solve your problem:
1. Desine class for each page of pageframe. Add a couple
methods for enabling and disabling all object. (I usually
make a container with all object to be enabled/disabled.
This container does not conain any labels - than you can
use SetAll for all objects).
2. Use corresponding methods for enabling/disabling.