Board index » delphi » Help: Tabbednotebook and ActivePage

Help: Tabbednotebook and ActivePage

Thanks to all, but ...

TTabbednotebook hasn't OnPageChanged-event. OnChange event
PageIndex-value is the value of page where I am leaving
of, not where I am going to.

AJL

Antti J. Lind
anttij.l...@outokumpu.fi

Quote

>> Hello,

>> Tabbednotebook component:
>> How can I know, when am I on specific page ?
>> At that page I have to open a few tables and execute
>> a stored procedures before showing DBGrid and DBEdits.

>The PageIndex property.

>if Notebook.PageIndex = 0 then {On first page}

>The OnPageChanged event may also be useful.

 

Re:Help: Tabbednotebook and ActivePage


Quote
anttij.l...@outokumpu.fi wrote:

> Thanks to all, but ...

> TTabbednotebook hasn't OnPageChanged-event. OnChange event
> PageIndex-value is the value of page where I am leaving
> of, not where I am going to.

Use the NewTab parameter to the OnChange event.

Other Threads