General information
Category:
Forms & Form designer
>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)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only