AdvPanelGroup, AdvPanel and AdvPanelStyler

Hello,

I am having a hard time trying to use these components to give dynamically created panels a consistent, pre-defined look. From my understanding, I define settings in the AdvPanelStyler and assign them to all panels. But this does not work.

Example: I have a form with an AdvPanelGroup and an AdvPanelStyler. in FormCreate I create panels and assign the styler. The styler has Settings/Caption/Visible set to TRUE. But the Caption of the new panels is not visible. I expect the caption to be visible, as defined in the AdvPanelStyler.

procedure TfrmMain.FormCreate(Sender: TObject);
var
  newPanel: TCustomAdvPanel;
begin
  AdvPanelGroup1.BeginUpdate;
  newPanel := AdvPanelGroup1.AddPanel;
  newPanel.Caption.Text := 'Test';
  newPanel.Styler := AdvPanelStyler1;
  AdvPanelGroup1.EndUpdate;
end;

Of course the caption is visible when I explicitly add

newPanel.Caption.Visible := TRUE;

but I think that's why there is the same setting in the AdvPanelStyler?

I am using the latest version of the VCL UI Pack.

The styler reuses classes such as TPanelCaption that are also used in the TAdvPanel.
The purpose of the styler is to unify the look & feel of the panel, i.e. colors / font settings / indents / ... but we left the Caption.Visible property out to be adopted automatically by the Panel as in many scenarios it was desired that the Panel's Caption.Visible setting had priority over the styler's setting.

Thanks for clarification, Bruno.