vcl-160049-expressnavbar-concepts-groups-links-and-items-embedding-controls-into-groups.md
This topic provides an example of customizing a group so that it displays custom controls within its client area. It is supposed that before starting to follow this topic’s instructions you have an application open with a customized NavBar control on the form. The NavBar should have two groups as shown in the image below.
This example will add one more group to the NavBar control. The group’s client area will display two check boxes which can be used to show/hide other groups. The next image displays the result of following the instructions below.
Customize the NavBar control in this manner.
procedure TfrmNavBarDemo.chbHelpClick(Sender: TObject);
begin
// change the visibility of the Help Topics group with
// respect to the check box state
grHelpTopics.Visible := chbHelp.Checked;
end;
procedure TfrmNavBarDemo.chbEditClick(Sender: TObject);
begin
// change the visibility of the Edit group with
// respect to the check box state
grEdit.Visible := chbEdit.Checked;
end;
See Also