[quote=“gdgsupport”]NavigateCommand(6); and NavigateCommand(7); are not the commands for the zoom.
For your buttons, use Global.HEZoomIn and Global.HEZoomOut HEScript calls.[/quote]
Thanks for the solution, it works fine now.
Where was this information available? I searched the knowledgebase beforehand and thought the original solution (which didn’t work) was correct.
I still can’t find information about Global.HE scripts in the knowledgbase.
NavigateCommand(6); and NavigateCommand(7); are not the commands for the zoom.
For your buttons, use Global.HEZoomIn and Global.HEZoomOut HEScript calls.
Hi there. I have a publication that works ok, and I can call the zoom function successfully from the navigate drop down, but I would like to implement the same function from a button on the toolbar.
I have made custom buttons for ‘zoom in’ and ‘zoom out’ on the toolbar and tried to apply the script procedure to them:
procedure MyNavigateZoominCommand;
begin
NavigateCommand(6);
end;
procedure MyNavigateZoomoutCommand;
begin
NavigateCommand(7);
end;
into both the Macros and the UserMain scripts, but neither of them work. The check says that the scripts are OK.