`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
1
vote
0 answers
Why compiler execute OnShow event first and OnHide later in TTabSheet?
I'm using a TPageControl with 2 TTabSheet (ModifyTab and DeleteTab) and I have code in OnShow and OnHide events for both tabs . I was thinking that when I clicks anyone of these tabs, OnHide event of the selected Tab occurs first and clicked tab´s…

fuentes
- 11
- 3
1
vote
1 answer
Dynamically create Tpagecontrol instances
I have searched and searched but found no examples. I would like to dynamically create PageControl instances each with their own setoff TTabsheets. I get no complaints from the Delphi IDE, however I do get:
Access violation in module…

David Moore
- 21
- 1
- 6
1
vote
1 answer
How to owner-draw on VCL-styled Page Control
When I have this:
if not _nightMode then
TStyleManager.TrySetStyle('Windows', False);
I can owner-draw on Page Control:
procedure TMyMainForm.pcDetailedDrawTab(Control: TCustomTabControl; TabIndex: Integer;
const Rect: TRect; Active:…

Paul
- 25,812
- 38
- 124
- 247
1
vote
1 answer
How to add a property to TTabSheet such that it can be used at design time with TPageControl
I would like to add "MyProperty" to TTabSheet and work with it at design time. However if I subclass it I fear I will need to also subclass TPageControl, since it internally creates/manages the TTabSheets.
I believe this would require duplicating…

user1627960
- 421
- 1
- 3
- 10
1
vote
1 answer
Can I use the new Delphi VCL styles to simply color a specific object (TPageControl) alone?
I am starting with Delphi VCL styles and I see that it is very easy to apply a predefined style using 'Project | Options' and then 'Application | Appearance'.
Naturally these styles affect the whole look and feel of the Application. I would like to…

Brian Frost
- 13,334
- 11
- 80
- 154
1
vote
1 answer
Delphi TPageControl not responding to clicks on tabs
I have an app with a TPageControl on the main form. The pagecontrol has several tabs. The app can be minimized to a tray icon. Sometimes after running minimized for a while, when I restore the main window (via a right-mouse click on the tray…

rossmcm
- 5,493
- 10
- 55
- 118
1
vote
0 answers
DELPHI - PNG Images in TPageControl
In my Delphi XE3 Application I've placed a TPageControl component into the MainForm.
I linked its "Images" property to a ImageList which contains some PNG images.
At design time when I set the "Image Index" properties of each TTabSheet the images…

stacker
- 603
- 4
- 10
- 15
1
vote
1 answer
How to dynamically duplicate a tab?
I have a TPageControl with a TTabSheet. and in that TTabSheet i have a bunch of functions and components. I would like to duplicate that tabSheet at run time via a button with all the functions and components still in it and working.
Right now I…

livelaughlove
- 376
- 3
- 9
- 21
0
votes
1 answer
DELPHI -how can i insert tlabeledit to dynamic tabsheet in TpageControl
i need to have this ini file which i mentioned it in my dynamic ttabsheet which i created it dynamically ! as you see ini file , it has three parts each start with 001-002-003 and then let those which start with 001 in first tabsheet , those start…

maxfido
- 45
- 5
0
votes
0 answers
Window looses its handle when docking / undocking
I am using a PageControl on my main form to serve as a dock site for other forms.
One of these forms, fPanelSonar, has a panel that serves as container for a 3rd party application that I load as follow:
var
i : Integer;
ExecutePingViewer :…

E Demers
- 103
- 1
- 8
0
votes
1 answer
How to dock a form to TPageControl at runtime from code
I am building an application with a TPageControl.
This is used to dock forms. The user may use the form inside or outside the TPageControl.
Some times, the application may start with the form on the desktop, other times inside the…

E Demers
- 103
- 1
- 8
0
votes
0 answers
How can i change the orientation of the caption inside the tab in the tabsheet in delphi?
I am trying to make a pagecontrol using delphi, the problem is when i switch the tabsheet's position to the sides the caption change too and i want it to be horizontal, any clue about how to do this ?
Thanks in advance.
0
votes
1 answer
Adding controls to TPageControl within TabSheet1Show
When I try to add controls to an already existing TTabSheet at runtime, these controls stay invisible when they are added within the OnShow event of TTabSheet.
Steps to reproduce:
Add a TPageControl to a TForm in the designer
Add 3 TTabSheet…

Herwig
- 316
- 1
- 17
0
votes
1 answer
How to check if the tabSheet are already created in the TPageControl
I create the tabsheets dynamically in RunTime and placed a Frame inside it using this code:
procedure TForm1.Button2Click(Sender: TObject);
var
TabSheetG: TTabSheet;
begin
TabSheetG := TTabSheet.Create(PageControl1);
TabSheetG.Caption :=…

Hamza Benzaoui
- 168
- 3
- 14
0
votes
1 answer
Components added to TcxTabSheet are not displayed at runtime when TcxPageControl is hosted in a TFrame
I am building a re-usable TFrame which contains a TcxPageControl. The idea is the frame is dropped onto the form and then I can add pages specific to that form.
This works fine, I can successfully add pages through the designer and at runtime those…

James
- 80,725
- 18
- 167
- 237