1. Home
  2. Computing & Technology
  3. Delphi Programming

TPageControl - Delphi Usage Examples, Tips and Tricks

Delphi's page control, TPageControl, is a page set suitable for multipage dialog boxes. A page control displays multiple overlapping pages that are TTabSheet objects. A page is selected in the user interface by clicking a tab on top of the control. Learn how to use the page control in Delphi programs.

Hide the Tabs of the TPageControl control

If you need to create a wizard-like user interface where you have "Next" and "Previous" buttons "moving" a user forward and backward through a set of pages (dialogs), you might want to hide the tabs of the PageControl and thus disallow selecting a particular page by the mouse.

Move PageControl Tabs Using Drag and Drop

Why not enable your users to rearrange tabs in a TPageControl component at run time using drag and drop...

Raising TPageControl's OnChagning and OnChange Events from Code

When setting ActivePage property for the TPageControl control, from code, the OnChanging and OnChange events are not triggered. By design, those events are only fired when a user clicks on a tab to activate the page (TabSheet) on a TPageControl.

Placing a Form inside a TabSheet of a TPageControl

Here's how to dynamically place a Delphi Form into a TabSheet of a TPageControl - while still being able to use a Form as a stand-alone window.
Explore Delphi Programming
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Using VCL Components
  5. TPageControl

©2010 About.com, a part of The New York Times Company.

All rights reserved.