[DUG] TPageControl Interesting Observation D2007
Steve Peacocke
steve.peacocke at gmail.com
Tue Aug 28 16:08:09 NZST 2007
Rohit,
The TMS PageControl has an OnCanChange event that passes FromPage and ToPage :)
Steve
--
Steve Peacocke
http://stevepeacocke.blogspot.com/
On 28/08/07, Steve Peacocke <steve.peacocke at gmail.com> wrote:
> On 28/08/07, Rohit Gupta <rohit at cfl.co.nz> wrote:
> > Hi Steve,
>
> Gidday Rohit,
>
> > A major failing is that it has no way of telling you which page it is going
> > to switch to in the Change event. I had to add another event in that does
> > support it.
>
> Within the OnChange event, TPageControl's PageIndex and its ActivePage
> will tell you which page it has just changed to. Using the OnChanging
> event will tell you which page it is currently on before you leave.
> While you are correct in that the OnChange event won't tell you which
> tab you are going to change to, sing both together should solve most
> requirements.
>
> Steve
>
More information about the Delphi
mailing list