Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where do I enable/disable
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00128401
Message ID:
00128429
Views:
41
Josh,
thanks for your reply, is the Refresh method fired the first time the controls are instantiated?, this is a must for obvious reasons
Regards
Pete

>You may want to put it in the Refresh() method of the control classes so that you can use THISFORM.Refresh() to refresh the controls when you change the mode (if you would ever change the mode when the form is displayed).
>
>
>>Hello all,
>>Being a relative newcomer to VFP when I wrote my first app, I still coded my enable/disable, RO/RW code for my form controls in the Init of my form, I am now a little more OOP aware and would like to move it to the relevant classes, e.g. in the init of the control
>>
>>if this.parent.mode = 'VIEW'
>> this.readonly = .t.
>>endif
>>
>>etc..., can anyone give me some direction on this.
>>Regards
>>Pete Kane
Regards,
Peter J. Kane



Pete
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform