LlDesignerProhibitAction

Syntax:

INT LlDesignerProhibitAction (HLLJOB hJob, INT nMenuIndex);

Task:

Hiding of menu items in the Designer (and their respective toolbar buttons).

Parameter:

hJob: List & Label job handle

nMenuIndex: Menu function index

The function index can have the following values:

Value

Meaning

0

All function exclusions are deleted, the menu item list is reset (default menu is restored). This is automatically called by LlJobOpen() and LlJobOpenLCID(). This function needs to be used for several LlDefineLayout() calls with different lock entries, otherwise the lock entries will be added.

LL_­SYSCOMMAND_­MINIMIZE

The Designer window cannot be minimized (iconized).

LL_­SYSCOMMAND_­MAXIMIZE

The Designer window cannot be maximized.

other

The menu IDs of the deleted menus can be given here. The IDs of the menu items in List & Label can be found in the file MenuID.txt included in your package.

 

Return Value:

Error code

Hints:

If this function is used, it must be called before the function LlDefine­Layout().

This call can be made several times in turn for different function index values as the entries are added to a lock-entry list which is evaluated at the call of LlDefineLayout(). They can even be called during the LL_CMND_MODIFYMENU callback.

Example:

HLLJOB hJob;
hJob = LlJobOpen(0);

LlDefineVariableStart(hJob);
LlDefineVariable(hJob, "Name", "Smith");
LlDefineVariable(hJob, "Forename", "George");
LlDefineVariable(hJob, "PIN", "40|08150|77500", LL_BARCODE_EAN13, NULL);
LlDesignerProhibitAction(hJob, LL_SYSCOMMAND_MAXIMIZE);
LlDesignerProhibitAction(hJob, LL_SYSCOMMAND_MINIMIZE);
LlDefineLayout(hJob, hWndMain, "Test", LL_PROJECT_LABEL, "test.lbl")
LlJobClose(hJob);

See also:

LlDefineLayout, LlDesignerProhibitEditingObject, LlDesignerProhibitFunction