[DUG] TPageControl Interesting Observation D2007

Steve Peacocke steve.peacocke at gmail.com
Tue Aug 28 14:49:49 NZST 2007


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

-- 
Steve Peacocke
http://stevepeacocke.blogspot.com/


More information about the Delphi mailing list