Yuriy Chachora
Yuriy Chachora

Reputation: 769

How to change default delphi docked form title height?

I dock form to the TPanel using standard delphi docking functions. And the title of docked form looks like this enter image description here

How can I modify its appearance?

Upvotes: 3

Views: 1349

Answers (1)

Ondrej Kelle
Ondrej Kelle

Reputation: 37221

The default appearance comes from TCaptionedDockTree. You can write your own descendant and assign it to DefaultDockTreeClass to replace it. To change the caption height, override AdjustCaptionRect. To change the actual drawing of the caption, override GetDockCaptionDrawer to return your own descendant of TDockCaptionDrawer with overriden DrawDockCaption and/or DockCaptionHitTest methods.

Upvotes: 8

Related Questions