Create a print preview icon (SOLVED)


Been trying to create a print preview icon and having problems. The only choice I was given in “Execute this script function” was HEPopupPrintPreview. Problem is I have popups disabled and when clicked nothing happens. But in the file menu, print preview shows up in the list and works properly. Is there a way to get the code used in the file menu and use it for an icon? Please let me know thanks.

HEPopupPrintPreview will only work within popup windows. You have to use the script editor (in User Scripts) to create a procedure in UserMain. For instance, copy/paste this script in UserMain:

procedure ShowPPrev;

Then create a new toolbar button, and choose to call the HEScript function UserMain.ShowPPrev

PERFECT! thank you so much! works great!