The OnChanging event fires before new tab is selected, so ActivePageIndex and TabIndex both points to the current page. The OnChange event fires after new tab is selected, the TabIndex points to the newly selected page.
Cheers, Kuet-Fung -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neven MacEwan Sent: Tuesday, 27 February 2007 14:36 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] TPageControl Rohit Gupta wrote: Is the answer you don't? you use the onshow event of the page? > Using TPageControl, > > Changing Event, how do I detect which page it is going to change to ? > ActivePageIndex and TabIndex both show the current page (not the next > page) > > *Rohit Gupta* > * B.E. Elec. M.E. Mem IEEE Associate IEE* > *Technical Manager* > *Computer Fanatics Limited* > ** > *Tel* +64 9 4892280 > *Fax* +64 9 4892290 > *Email [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>** > *Web *www.cfl.co.nz <http://www.cfl.co.nz/> > > ---------------------------------------------------------------------- > -- This email and any attachments contain information, which is > confidential and may be subject to legal privilege and copyright. If > you are not the intended recipient, you must not use, distribute or > copy this email or attachments. If you have received this in error, > please notify us immediately by return email and then delete this > email and any attachments. > ---------------------------------------------------------------------- > -- > > _______________________________________________ > Delphi mailing list > Delphi@ns3.123.co.nz > http://ns3.123.co.nz/mailman/listinfo/delphi > _______________________________________________ Delphi mailing list Delphi@ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorised disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. _______________________________________________ Delphi mailing list Delphi@ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi