ScrollBars show always \ Mouse click to move page

Technical support for Spire.PDFViewer

Moderator: iceblue support

ScrollBars show always \ Mouse click to move page

Postby TomaszF » Sat Feb 27, 2016 10:41 pm

Hello.

I have two question:
1.
What should I do to enabled ScrollBars (both) always?

2.
Can I move page programmatically ?
I would create function on ClickMouse to move size (if page is largest then screen)
TomaszF
 
Posts: 2
Joined: Sat Feb 27, 2016 10:34 pm

Re: ScrollBars show always \ Mouse click to move page

Postby tonschnoer » Sun Feb 28, 2016 4:08 pm

I can help you with topic 2)

Yes, You can use the methods goToNextPage(), goToPreviousPage(), goToPage(pageNumber).
What do You mean with "to move size..."?

Regards
Kai
tonschnoer
 
Posts: 2
Joined: Sat Feb 27, 2016 8:22 am

Re: ScrollBars show always \ Mouse click to move page

Postby TomaszF » Sun Feb 28, 2016 5:20 pm

I'm sorry, it's mistake.

"I would create function on ClickMouse to move page (if page is largest then screen)" - it's correct.

So methods goToNextPage(), goToPreviousPage(), goToPage(pageNumber) are not usable in this case.
TomaszF
 
Posts: 2
Joined: Sat Feb 27, 2016 10:34 pm

Re: ScrollBars show always \ Mouse click to move page

Postby Betsy » Mon Feb 29, 2016 8:06 am

Hi tonschnoer and TomaszF,

Thanks tonschnoer’s answer.
TomaszF, for your first issue, sorry that there is no option to enabled ScrollBars (both) when the tool’s width and heigh are enough for the document.
For your second issue, you can use hand tool to move page, here is sample code for your reference:
Code: Select all
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (this.pdfDocumentViewer1.IsDocumentLoaded)
            {
                this.pdfDocumentViewer1.EnableHandTool();
            }
        }
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            if (this.pdfDocumentViewer1.IsDocumentLoaded)
            {
                this.pdfDocumentViewer1.EscapeHandTool();
            }
        }


Sincerely,
Betsy
E-iceblue support team
User avatar
Betsy
 
Posts: 804
Joined: Mon Jan 19, 2015 6:14 am

Re: ScrollBars show always \ Mouse click to move page

Postby Betsy » Tue Mar 01, 2016 9:39 am

Hi,

Has your issue been resolved ?
Thanks for your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar
Betsy
 
Posts: 804
Joined: Mon Jan 19, 2015 6:14 am


Return to Spire.PDFViewer

Who is online

Users browsing this forum: No registered users and 0 guests