• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1675
  • Last Modified:

programmatically add pages to DeveXpress cxPageControl

How can I programmatically add cxTabSheet (pages) on a cxPageControl of DevExpress delphi?
0
dinko1
Asked:
dinko1
1 Solution
 
Ephraim WangoyaCommented:
Here
procedure TForm3.Button1Click(Sender: TObject);
var
  TabSheet: TcxTabSheet;
begin
  TabSheet := TcxTabSheet.Create(cxPageControl1);
  TabSheet.PageControl := cxPageControl1;
  TabSheet.Caption := 'Tab' + IntToStr(TabSheet.PageIndex);
end;

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now