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. You can find the corresponding IDs in the "MenuID.txt" file in your List & Label installation. |
Return Value:
Error code
Hints:
If this function is used, it must be called before the function LlDefineLayout().
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.
If ribbon IDs are specified, the LL_OPTION_RIBBON_FORCEENABLED option can also be used to force the ribbon; otherwise, check whether these IDs would also affect the classic menu. Pass negative ribbon IDs to enable them again.
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