Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To Disable or Not to Disable
Message
From
23/10/1996 13:10:10
 
 
To
23/10/1996 12:38:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00010779
Message ID:
00010791
Views:
32
>
>I would also make the group enabling or disabling of buttons a new method on the form, so that your code is only in one place.
>
>I.love.bad.Humor(!)

How about adding a property to your button class called something like cButton_Group. Store the name of the group the button belongs to in here.

Then have a form method that runs through all Commandbuttons and enables/disables based on whether the property cButton_Group matches the group you want to change etc. Pass in the name of the group and the new Enabled status when you call the method.

-Doug-
Previous
Reply
Map
View

Click here to load this message in the networking platform