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
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