Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxTabSheet.Highlighted Property

Specifies whether the corresponding tab is highlighted.

#Declaration

Delphi
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.

Delphi
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