Menu Items, Objects and Functions

Starting point for Designer restrictions is the DesignerWorkspace property of the ListLabel object. In the following table the properties listed can be used to restrict the Designer.

 

Property

Function

ProhibitedActions

This property's purpose is to remove single menu items from the Designer.

ProhibitedFunctions

This property's purpose is to remove single functions from the Designer.

ReadOnlyObjects

This property's purpose is to prevent objects' editability in the Designer. The objects are still visible; however they can't be edited or deleted within the Designer.

 

The following example shows how the Designer can be adjusted so no new project can be created. In addition the function "ProjectPath$” will be removed and the object "Demo” is prevented from being edited.

ListLabel LL = new ListLabel();
LL.DataSource = CreateDataSet();

 

// Restrict Designer

LL.DesignerWorkspace.ProhibitedActions.Add(LlDesignerAction.FileNew);

LL.DesignerWorkspace.ProhibitedFunctions.Add("ProjectPath$");

LL.DesignerWorkspace.ReadOnlyObjects.Add("Demo");

 

LL.Design();
LL.Dispose();