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.