>>>>nOW nNow that I have my own customized toolbar with subclasses, how do I make all the textboxes on a certain form readonly?
>>>
>>>Have you tried thisform.SetAll("ReadOnly", .t. ,"YourTextBoxClassName") ?
>>
>>That's the example I was looking for. It worked, thanks!
>>How bout if I wanted only selected ones to be readonly, I guess Mr. Fournier's advice might apply.
>
>
>In my base form class I have a method called 'changestate' which takes a parameter that indicates if the form should be in View or Edit mode. Based on the mode, it cycles through all fields and containers and sets the readonly property to true or false. I skip labels, and command buttons, because I generally want to handle my command buttons differently. Also, I have access codes assigned to each field so if the user does not have the appropriate access, the readonly property stays readonly. Remember that check boxes (or is it comboboxes?) do not have a readonly property so they must be handled differently.
SOUNDS useful. what exactly does this 'changestate' method look like?
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."