Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tpagecontrol

Status
Not open for further replies.

pierrotsc

Programmer
Nov 25, 2007
358
US
I'm using a tpagecontrol with a few tabs. When the user click on a certain tab, if a boolean is false, i'm displaying a message and when he presses ok, i would like to send him to a different tab.
How can I do that?

Thanks.
PO
 
use the onshow event of the sheet that has the certain tab

then you can use code like

Showmessage('showing other tab...');
Pagecontrol.activeageindex:=1;// select the page you want to activate...

/daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top