Skip to main content
All docs
V26.1
  • Page Control Tutorial

    • 2 minutes to read

    This tutorial creates a simple tabbed user interface using the TcxPageControl component. Each page contains different UI elements.

    VCL Page Control: A Page Control-Based Application Example

    Step 1 — Create Pages

    Place a TcxPageControl component on a form.

    VCL Page Control: A Form with a Page Control

    Right-click the TcxPageControl component and select the New Page item to create a new page.

    VCL Page Control: Add a Page

    Add a second page. The created page automatically becomes active.

    VCL Page Control: Add a Second Page

    Step 2 — Add and Display Tab Glyphs

    Place a TcxImageList component. Double-click the image list and use the editor to load four glyphs from the DevExpress Icon Library.

    VCL Page Control: The Image List Editor

    Tip

    Refer to the following help topic for detailed information on image list management: Image List Editor.

    Assign the populated TcxImageList component to the Properties.Images property of the TcxPageControl to display loaded glyphs in corresponding tabs.

    VCL Page Control: Assign the Populated Image List

    All images from the assigned list are automatically assigned to created tabs:

    VCL Page Control: Assigned Tab Glyphs

    Step 3 — Place Controls on Created Pages

    1. Click the first tab and place a TcxLabel component on the displayed page.
    2. Set the TcxLabel component’s caption to 'First Page'.

      VCL Page Control: Define First Page Content

    3. Click the second tab and place a TcxTextEdit component on the displayed page.

    4. Set the TcxTextEdit component’s Text property to 'Second Page'.

      VCL Page Control: Define Second Page Content

    Step 4 — Run & Test the App

    Build and run the Application. Click tabs to switch between them.

    VCL Page Control: A Page Control-Based Application Example

    See Also