General information
Category:
Forms & Form designer
>Hi,
>
>>>
>I just wanted to know what is the recommended way to refresh a toolbar:
>- Timer
>- Inserting code in thisForm.init() and thisForm.destroy() methods.
>>>
>
>It depends...
>If the same toolbar is servicing multiple forms then I think that probably the best place is in the Form.Activate/Deactivate events.
>
>Regards,
>Viv
You are right, activate and deactivate methods make more sense. The toolbar is servicing the whole application, so it has buttons related to forms and others that relate to miscelaneous things (like save as, send to ..., cut-copy-paste, ...), and these buttons are the ones who change more from enabled to disabled (think of the cut-copy-paste).
Thanks,
Javier.
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