`TPageControl` is a Delphi VCL control displaying a set of pages used to make a multiple page dialog box. It is defined in the `ComCtrls.pas` unit.
Questions tagged [tpagecontrol]
49 questions
4
votes
2 answers
close button of a tabsheet not supporting vcl styles
I have used the code provided in this example How to implement a close button for a TTabsheet of a TPageControl to draw a close button to each tabsheet of a pagecontrol and I have replaced ThemeServices with Style Services inside the code and when…

Cristian Vasuica
- 369
- 9
- 22
4
votes
1 answer
draw a close button in each Ttabsheet of a TPageControl
I want to implement a close button on a PageControl and I have read this question also How to implement a close button for a TTabsheet of a TPageControl
The thing is I can't figure it out how to implement the code provided in the answer of…

Cristian Vasuica
- 369
- 9
- 22
3
votes
3 answers
How can I change the orientation of the label on a TPageControl?
I'm new to Delphi (again - I used Delphi back in 1994). I now have Delphi 2009 Pro.
Coming from Java, I find the object inheritance very obscure.
My users want tabbed pages with the tabs on the left. But, the TPageControl doesn't allow the tab…

Mark W
- 31
- 1
- 2
3
votes
1 answer
Flickering when TPageControl has many tabs
My problem is that I have a TPageControl which contains a dynamically created number of tabs each containing a single (alClient) TMemo. When this number of tabs exceeds the width of the control and the scroll arrows appear on the tab header, all…

Clayton Johnson
- 279
- 4
- 16
2
votes
1 answer
TTabSet tab Order....Different At Run Time Than Design Time
I am running Lazarus 0.9.30.2.
I have a TForm on which there is a TPageControl. Within the TPageControl there is a series of TTabSheets. At runtime the order of the TTabSheets differs from design time (see picture).
The order in design time is…

user1174918
- 525
- 6
- 22
2
votes
3 answers
Delphi: what component is (TDockTabSet ?) and how to work with it?
Is this TDockTabSet for Delphi (highlighted)? Or an other component? How to work with it. I want to use it instead of TPageControl but with the same functionality - like Tab Sheets.
One more picture:…

maxfax
- 4,281
- 12
- 74
- 120
2
votes
2 answers
Move a TabSheet between PageControls
I'm using Delphi 7 currently.
I have a main Form, it has a PageControl with 5 tabs on it.
I'm looking for a way to 'Detach' these tabsheets from the pagecontrol and move them individually to a new form, that is created runtime. The moved sheet needs…

Thomas R.
- 77
- 3
- 10
2
votes
4 answers
How can I access the controls of a form embedded in a page control?
In Form1 I have PageControl. At run time my program creates tab sheets. In each TabSheet I create Form2. In Form2 I have a Memo1 component. How can I add text to Memo1?

gedO
- 548
- 2
- 7
- 24
2
votes
2 answers
Make owner-drawn TPageControl tabs look nicer, like without owner-draw
I use Delphi7, PageControl with owner-draw. I can't get so plain and nice look of tabs, as I see on not-owner-drawn PageControls. What's bad:
when using owner-draw, I can't draw on "entire" tab header area, small 1-2px frame around tab header is…

Prog1020
- 4,530
- 8
- 31
- 65
2
votes
5 answers
TPageControl get index
How do I get the number of the page where there is an object? For example: there is a Button1 on the first page and Button2 on the second page, how do I get the number of the page where there is the Button1 without ActivePageIndex? Thanks.

Giacomo King Patermo
- 829
- 3
- 13
- 25
2
votes
1 answer
VCL Styles possible bug with drawing scrollbars
I have a pagecontrol in the center of my main form (form1 in my image), and I want to open other forms docked into the pagecontrol. Because I have many controls on my child form, I need both vertical and horizontal scrollbars (on the child form I…

Cristian Vasuica
- 369
- 9
- 22
1
vote
1 answer
Owner Drawn TPageControl OnMouse events fail to fire when docking a form as a tab
Using the example provided here How to implement a close button for a TTabsheet of a TPageControl combined with setting a forms parent to a tab sheet with matching caption I was able to take my pagecontrol with forms attached as TTabSheet and add a…

Richard Holland
- 2,663
- 2
- 21
- 35
1
vote
3 answers
Trouble with TPageControl DrawTab
I set the TPageControl Style to Flat Buttons (tsFlatButtons), and change the tab's button color using the OnDrawTab event.
It works, but the button that is not-active has grey (btnFace color) border!
Any idea how to fix this?
procedure…

Kawaii-Hachii
- 1,017
- 7
- 22
- 36
1
vote
1 answer
Create TabSheet and Frame based on item checked in a TreeView
I have a TTreeView on my form which gets populated from a DB table. The list currently has 22 items and all of them have checkboxes that can be checked.
The TTreeView is on a TForm that has a TPageControl with a pre-made TTabSheet and all other…

t1f
- 3,021
- 3
- 31
- 61
1
vote
3 answers
Slow eventhandler in TPageControl.OnChange causes weird behaviour
When I add slow code to the OnChange event of TPageControl I run into problems.
If the code is fast and doesn't take a lot of time, things are fine.
However if the code takes a long time to return +/- 0.5 to 1 second, the PageControl starts to act…

Johan
- 74,508
- 24
- 191
- 319