Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Edit Mode no more?
Message
From
28/10/1999 15:49:08
Jorge Haro
Independent Consultant
Juarez, Mexico
 
 
To
28/10/1999 15:40:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00283324
Message ID:
00283375
Views:
18
How do you do the enabling/disabling of controls, I use an if to check an edit flag on every controls refresh method, of course I use classes for this, this has worked fine, and I like the fact that every control takes care of itself.

>FWIW, here is the typical scenario in my forms:
>
>Toolbar before change:
>First: Enabled
>Previous: Enabled
>Next: Enabled
>Last: Enabled
>Search: Enabled
>New: Enabled
>Save: Disabled
>Undo: Disabled
>Delete: Enabled
>Close: Enabled
>
>Toolbar when the user has changed a value:
>First: Disabled
>Previous: Disabled
>Next: Disabled
>Last: Disabled
>Search: Disabled
>New: Disabled
>Save: Enabled
>Undo: Enabled
>Delete: Disabled
>Close: Disabled
>
>When the user save or revert the change, the toolbar go back to it's first state.
>But how do you solve the "irrelevent enabled controls" problem? For example, is your Undo and/or Cancel button always enabled? That's my problem; I get downright anal about controls not being enabled that have no function depending on the current form state. In a permanent edit mode, you have to get cute with the interactivechange of your parent classes.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform