Page 1 of 1
Creating Own Toolbar
Posted: Wed Mar 26, 2008 5:55 am
by jellis
Hi,
I want to create my own tool bar to use with the Preview Control. So basically turn the preview control toolbar off, and place the control on a form that has it's own toolbar. I can see that some of the toolbar functions can be called, but can't see them all (open for example). is there a standard way to call the functions as if the toolbar buttons had been clicked for all of the tools?
Regards,
J.
Creating Own Toolbar
Posted: Wed Mar 26, 2008 7:44 am
by Edward
Yes, there is a way.
In the 2008.1 official release the following methods had been added:
Code: Select all
public void InvokeBookmarks();
public void InvokeClickExportButton();
public void InvokeClickOpenButton();
public void InvokeClickPageDeleteButton();
public void InvokeClickPageDesignButton();
public void InvokeClickPageNewButton();
public void InvokeClickPageSizeButton();
public void InvokeClickPrintButton();
public void InvokeClickSaveButton();
public void InvokeClickSendEMailButton();
public void InvokeClose();
public void InvokeDotMatrix();
public void InvokeFirstPage();
public void InvokeFullScreen();
public void InvokeLastPage();
public void InvokeNextPage();
public void InvokeOpen();
public void InvokePageDelete();
public void InvokePageDesign();
public void InvokePageNew();
public void InvokePageSize();
public void InvokePrevPage();
public void InvokePrint();
public void InvokeProcessExport(StiExportService service);
public void InvokeProcessSendEMail(StiExportService service);
public void InvokeSave();
public void InvokeThumbs();
public void InvokeToolEditor();
public void InvokeToolFind();
public void InvokeToolHand();
public void InvokeToolSelect();
public void InvokeViewModeContinuous();
public void InvokeViewModeMultiplePages();
public void InvokeViewModeSinglePage();
public void InvokeZoomIn();
public void InvokeZoomMultiplePages();
public void InvokeZoomOnePage();
public void InvokeZoomOutPages();
public void InvokeZoomPageWidth();
public void InvokeZoomTwoPages();
The toolbar also can be hidden with ShowToolbar property of the StiPreviewControl
Thank you.
Creating Own Toolbar
Posted: Thu Mar 27, 2008 1:40 am
by jellis
Thanks Edward,
I've downloaded the 2008.1 trial & got just about everything working.
Couple of bit's of odd behaviour though, not sure if they are bugs?
InvokeZoomOnePage actually shows 2 pages and InvokeZoomMultiplePages just show a blank screen? Any Ideas?
Also, If I turn on the thumbnails pane with InvokeThumbs, the pane appears, but no thumnails?
Regards,
Jon.
Creating Own Toolbar
Posted: Mon Mar 31, 2008 10:04 am
by Vital
I've downloaded the 2008.1 trial & got just about everything working.
Couple of bit's of odd behaviour though, not sure if they are bugs?
InvokeZoomOnePage actually shows 2 pages and
It possible if two pages can placed in viewer space.
InvokeZoomMultiplePages just show a blank screen? Any Ideas?
We use special button for this function. You need release your own button. Please find attached code.
Also, If I turn on the thumbnails pane with InvokeThumbs, the pane appears, but no thumnails?
We have updated our code. Please call before this method, method BuildThumbs.
Thank you.