Pagecontrol properties, TTabSheet delphi
pogoromuald
Posted messages
18
Status
Member
-
Heremion Posted messages 564 Status Member -
Heremion Posted messages 564 Status Member -
Hello,
please I would like to be able to activate the page control that should be displayed from the source code. Thank you
Configuration: Windows 7 / Firefox 4.0
--
I am now certain that commencamarche.net is a nearly complete site and I am very happy to be a member there.
please I would like to be able to activate the page control that should be displayed from the source code. Thank you
Configuration: Windows 7 / Firefox 4.0
--
I am now certain that commencamarche.net is a nearly complete site and I am very happy to be a member there.
1 answer
-
The PageControl component has two properties that you can use:
- ActivePageIndex: integer
- ActivePage: TTabSheet
Personally, I advise you to use ActivePage because, if you ever need to change the order of your pages, your code will no longer work correctly.
Each page is of type TTabSheet. To set a PageControl to a specific page, you just need to place the following instruction wherever you want:
YourPageControl.ActivePage := YourTabSheet;
--
You must always remember to accept a post that gets you out of trouble.