Strange behaviour with TTabControl and TTabSheet ?
Hi,
Is there something I have missed or is there a strange behaviour with
TTabControl and TTabSheet in Delphi 5?
To clearify what I mean, I have a TTabControl on a form with several
TTabSheets. The strange behaviour I seem to get is with the OnEnter event. I
should think that, whenever you change to a new TabSheet in the TabControl,
the TabSheet's OnEnter event would get fired. Am I right? Somehow this event
only gets fired if I actively choose some component, like an edit component,
on the TabSheet. Nothing happens if I don't choose a component. Now, this
doesn't seem logical as the way I see it, when I change the tab, I enter the
TabSheet belonging to the tab. Or is there something I have missed here?
I need to do different actions for different TabSheets when I enter them,
that is when I change the Tab and the TabControl. I might be able to use the
OnChanged event, but it seems more logical to use the OnEnter.
S?ren Tauber Lassen
http://www.bosoft.dk