rbWiki > End-User > Designer > How To...Hide Notebook Tab

How To...Hide Notebook Tab

Table of contents
  1. 1. Question 
  2. 2. Solution

Question 

"How can I control the visibility of the Notebook tabs?" 

Solution

The following example shows how to use the Designer.Notebook.SetTabsVisible method to hide the Preview tab.

Download: DesignerHideNotebookTab.zip 

Sample Delphi code:

procedure TForm1.Button1Click(Sender: TObject);
var
  liPreviewTab: Integer;
begin
   

  liPreviewTab := ppDesigner1.Notebook.PageCount-1;
  ppDesigner1.Notebook.SetTabVisible(liPreviewTab, False);

  ppDesigner1.ShowModal;

end;
Tags
none

Files (0)

 
You must login to post a comment.