V
V
Vlad Stefanovich2015-02-07 00:59:17
Delphi
Vlad Stefanovich, 2015-02-07 00:59:17

How Does PageControl Work?

Good day to all, tell me how the standard PageControl works? For I read the source code, I seem to understand everything, but I still don’t understand how the tabs are created!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mercury13, 2015-02-11
@Mercury13

How to create tabs (i.e. how to use) - told zedxxx.
What does he have inside? In general terms, a large heap of TWinControls is created. One of them is visible, the others are not.
I didn’t fully understand the trick: we have an analogue of PageControl, with additional functionality of the “master” and without roots, but on some things it bugs. But in general it is. For details - just read the source.

Z
zed, 2015-02-08
@zedxxx

Like this:

NewTab := TTabSheet.Create(PageControl1);
  with NewTab do
  begin
    PageControl := PageControl1;
    Caption := 'Закладка ' + IntToStr(PageControl1.PageCount);
  end;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question