Skip to main content

TcxTabSheet.Highlighted Property

Specifies whether the corresponding tab is highlighted.

Declaration

property Highlighted: Boolean read; write; default False;

Property Value

Type Default
Boolean False

Remarks

Use the Highlighted property to highlight the tab corresponding to this page. Set this property to True for this purpose. The colors of the highlighted tab are specified by system settings for the highlighted style elements.

Set the Highlighted property to False to remove highlighting from the page’s tab.

The following sample code handles a page control’s OnChange event to highlight the selected tab.

procedure TForm1.cxPageControl1Change(Sender: TObject);
  var i: Integer;
begin
  for i := 0 to cxPageControl1.PageCount - 1 do
    cxPageControl1.Pages[i].Highlighted := False;
  cxPageControl1.ActivePage.Highlighted := True;
end;

The image below displays the result of handling the event. The Alignment tab is selected.

See Also