While working with a TNotebook with multiples pages i needed to set
specific actions (open/close a dataset) for each page when is show/hide.
First i tried the OnEnter/OnExit events but it has two problems:
- The event is not fired after the Tab is clicked. Is necessary to
click inside the page or in one of the subcomponents
- The event can be fired more then once if you click inside a
subcomponent and then in the page body.
The other option is to hook Notebook OnPageChanged and OnChanging
events, identify each TPage and set the proper action.
When working with few pages is fine but when there are more pages the
code can become ugly.
So i propose the addition of two new events in TPage: OnShow (fired once
when the tab is show) and OnHide (fired once after the tab is hide).
I can provide the patch if you agree (It almost finished in fact)
Luiz
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives