Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Labels
Message
De
28/04/1997 11:11:37
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:
00029902
Vues:
34
>>>Thank you for your response. I will problably use your suggestion in the future.
>>>
>>>I wound up using the following...
>>>
>>>thisform.pageframe.setall('enabled',.f.,'embossedfield')
>>>thisform.pageframe.setall('enabled',.f.,'embossedmemo')
>>>thisform.pageframe.setall('enabled',.f.,'datetimefield')
>>>thisform.pageframe.setall('enabled',.f.,'editbox')
>>>
>>>where the 3rd parameter is the class.
>>
>>I will tell you one more suggestion, Open up Wizstyle.vcx in wizards directory, open txtbtns, check the method setallprop, which is a general purpose routine to enable/disable items, It can be used after few modifications, use that.
>>
>>One line I can tell you which I modified:-
>>
>>Original
>>CASE ATC(m.oControlParent.Controls[m.i].BaseClass,"CheckBox,TextBox,OleBoundControl") #
>>
>>I changed it to
>>
>>CASE ATC(m.oControlParent.Controls[m.i].BaseClass,"ComboBox,CheckBox,TextBox,OleBoundControl") #
>>
>>to include combo boxes also.
>>
>>Check this out(very useful)
>It also needs to be modified to set properties of objects inside pageframes. Pageframes don't have a baseclass of "container" and don't have a controlcount property or a Controls() array, but pages do, and pageframes have a pagecount property and a Pages() array, which might be used in a similar way in the recursive calls in that method.
I'm not sure I understand. The setall worked ok for me using the syntax shown above
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform