Apply zoom command to custom toolbar button (SOLVED)

Status
Not open for further replies.

charco

New member
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:
Code:
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.

What am I doing wrong?
 
Last edited:
NavigateCommand(6); and NavigateCommand(7); are not the commands for the zoom.
For your buttons, use Global.HEZoomIn and Global.HEZoomOut HEScript calls.
 
Last edited:
“gdgsupport” said:
NavigateCommand(6); and NavigateCommand(7); are not the commands for the zoom.
For your buttons, use Global.HEZoomIn and Global.HEZoomOut HEScript calls.

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.
 
Last edited:
You’re right: they are missing from the documentation but it will be fixed in the 4.0.2 update.
 
Last edited:
Status
Not open for further replies.
Back
Top