Search the Wiki

Viewing 259 to 261 of 409 items

How To…Hide Object Inspector Properties

Question “How can I hide some of the object inspector properties from my end-users?” Solution The following example shows how to use the PropertyCategoryManager to hide the EmailSettings property. Download:  DesignerHideObjectInspectorProperties.zip Sample Delphi code uses ppInspector; procedure TForm1.Button2Click(Sender: TObject); var lPropertyCategory: TppPropertyCategory; liIndex: Integer; begin // remove EmailSettings from the User Interface category lPropertyCategory :=  Full Article…

0

How To…Hide Notebook Tab

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;  

0

How To…Hide DADE Menu Items

Question “How do I hide some or all of the menu items for the Data Tab?” Solution Check to see that the user has the data tab active in the TabChanged event and typecast the Designer.Menu.Items property as a Data menu object to access the menu items. Download: HideDataMenuItems.zip Sample Delphi code: procedure TForm1.ppDesigner1TabChanged(Sender: TObject);  Full Article…

0