Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Labels
Message
De
27/04/1997 17:38:00
 
 
À
27/04/1997 11:29:55
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Re: Labels
Divers
Thread ID:
00029828
Message ID:
00029851
Vues:
31
>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.
Vladimir Batrack
E-mail: vnb@writeme.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform