Formatting code for DisableFind
=====How to disable the Find menu command?=====
~& Is it possible to edit items within the menu bar? I would like to remove Find as a choice from the Edit Menu.
You need to edit your "UserMain" script (go to "Behavior and Scripting" -> "User Scripts").
Look for "//procedure OnDisplayWindow(WindowName: String);//" ;
and add this command to achieve your goal:
%%(pascal)
SetUIProp("Find1", "Visible", "False");
%%
Example:
%%(pascal)
procedure OnDisplayWindow(WindowName: String);
begin
SetUIProp("Find1", "Visible", "False");
end;
%%
Compile your publication and that's all.
If you need help or more samples, feel free to ask in the user [[http://www.gdgsoft.com/forum forum]].
~& Is it possible to edit items within the menu bar? I would like to remove Find as a choice from the Edit Menu.
You need to edit your "UserMain" script (go to "Behavior and Scripting" -> "User Scripts").
Look for "//procedure OnDisplayWindow(WindowName: String);//" ;
and add this command to achieve your goal:
%%(pascal)
SetUIProp("Find1", "Visible", "False");
%%
Example:
%%(pascal)
procedure OnDisplayWindow(WindowName: String);
begin
SetUIProp("Find1", "Visible", "False");
end;
%%
Compile your publication and that's all.
If you need help or more samples, feel free to ask in the user [[http://www.gdgsoft.com/forum forum]].