`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
23
votes
4 answers
TLabel and TGroupbox Captions Flicker on Resize
So, I have an application that loads different plugins and creates a
new tab on a TPageControl for each one.
Each DLL has a TForm associated with it.
The forms are created with their parent hWnd as the new TTabSheet.
Since the TTabSheets aren't a…

ThievingSix
- 1,044
- 1
- 11
- 23
18
votes
3 answers
Dynamically add tab sheets to page control and embed a form?
I'm working on a module which consists of a page control. By default, this page control (TPageControl) shouldn't have any tab sheets (TTabSheet), but upon initialization, it should dynamically insert these pages and embed a form inside of it.
The…

Jerry Dodge
- 26,858
- 31
- 155
- 327
16
votes
5 answers
How can I change the background color of my TTabSheets?
Im Designing a Form with Delphi 2009, and Im trying to figure out the TPageControl element. Im trying to make separate dialogs for each tab. I can make the TTabSheets, and I can place my elements on the TabSheets, but my problem is that they are…

Ben313
- 1,662
- 3
- 20
- 32
9
votes
4 answers
How to implement a close button for a TTabsheet of a TPageControl
How can I implement a close button for a TTabsheet of a TPageControl like Firefox?
Edit:
Delphi Version: Delphi 2010
OS: Windows XP and up

Heinz Z.
- 1,537
- 3
- 14
- 29
8
votes
2 answers
How can I reduce PageControl flicker in Delphi?
In Delphi 2009 I found that the flicker of a PageControl - which occurs during resizing of the form - can be reduced by setting its DoubleBuffered property to true.
However if I add controls to the PageControl tabsheets, they will flicker regardless…

mjn
- 36,362
- 28
- 176
- 378
8
votes
1 answer
List index out of bounds in TPageControl
I am stuck with a TPageControl that exhibits some strange behaviour..
The control has 3 pages but when I do
for I:=0 to PageControl.PageCount-1 do begin
PageControl.Pages[I].TabVisible := False;
PageControl.Pages[I].Visible :=…

Bjarke Moholt
- 313
- 1
- 4
- 20
8
votes
2 answers
How to break up TPageControl tabs into seperate files in Delphi?
I have a VCL form with a five tab TPageControl on it. Each TTabSheet's content is fairly unrelated and has a lot of individual controls and processing logic...so I want to break it up so it's easier to deal with the code for "just that tab". Having…

Jessica Brown
- 8,222
- 7
- 46
- 82
7
votes
3 answers
How can I set the current page of a TPageControl?
I am using a pagecontrol component and I need to add a button and click it to go to a specified page.
How can I do this please?

Satch3000
- 47,356
- 86
- 216
- 346
6
votes
2 answers
Adding a context menu to the tab of a TPageControl
I wish to add a context menu to the (just the) tab of a TPageControl as distinct from the tab area (e.g like Delphi does to offer file/page options). I know I can do this with TRzPageControl but how might it be possible with TPageControl please?

Brian Frost
- 13,334
- 11
- 80
- 154
6
votes
2 answers
How can i change text color of themed TabSheet caption?
Good Day!
I need to change text color of caption of some TabSheet in TPageControl. Something like this on picture
I know how it can be done using OnDrawTab. But if i enabled OwnerDraw, decoration of Windows XP Theme disappears. That's why i try to…

ventik
- 877
- 7
- 18
5
votes
2 answers
How to paint standard windows information icon nicely to the index of a pagecontrol's tab
I would like the standard windows information (and warning and error) icons painted to the index of a tab of a pagecontrol. However the result is looking bad if the windows background color is not white.
program Project111;
uses
Vcl.Forms,
…

RM.
- 1,984
- 19
- 29
5
votes
1 answer
How can I hide the header of the PageControl TabSheets in C++ Builder
I wonder how can I hide the headers of the TabSheets in PageControl component. I want make a creator e.g to build your champion where you can choose some stuff on the pages. TabSheets will be change every 10 s by Timer. In Google I can find only how…

Lukas
- 69
- 1
- 10
5
votes
3 answers
How to convert Delphi TPageControl "tab index" to "page index"?
I'm using a TPageControl, where certain pages are not visible.
This breaks the normal 1:1 mapping of the TabIndex and ActivePageIndex properties.
In most places I can use ActivePageIndex (or ActivePage itself) to get the current page, but I want a…

Roddy
- 66,617
- 42
- 165
- 277
4
votes
2 answers
Detect tab change in PageControl
I have a PageControl on my form and i wish to detect when the user is selecting another tab.
How can i do this ? I am using Delphi 7.
I didn't find any event and waisting time developing my own pagecontrol is not exactly what i intend to do.

opc0de
- 11,557
- 14
- 94
- 187
4
votes
5 answers
How to allow or forbid user to enter tab in pagecontrol?
I want to restrict users (based on special condition) to open a tab or not in a page control. ie, the user can click on the tab but it will not be displayed to him. Instead, a message will show to him that "he don't have the access right to see such…

Amanda
- 215
- 5
- 14