page count sync
Posted: Tue Jun 05, 2012 5:22 am
I have navigation which allows useres to click on right or left arrows to move through pages of pdf files loaded in a gdviewer. Below the arrows is a paging indicator - Page 2 of 48 for example. This works very well and moves through the PDF perfectly. We have recently added the thumbnail viewer which also allows movement of the pages. I am trying to sync the current page of the gdviewer with the paging indicator.
running the newest version of gdpicture .net 8 as com in Microsoft Access 2010.
I have the following two routines for this purpose. Its close but the paging always shows the previous page I clicked on in the thumbnail and not the one currently displayed in the gdviewer or thumbnail?
Private Sub thumb1_ItemClicked(ByVal idx As Long, ByVal button As MouseButton)
Call Display_page
End Sub
Private Sub Display_page()
lbPage.Caption = "Page " & GdViewer1.CurrentPage & " of " & GdViewer1.PageCount
End Sub
running the newest version of gdpicture .net 8 as com in Microsoft Access 2010.
I have the following two routines for this purpose. Its close but the paging always shows the previous page I clicked on in the thumbnail and not the one currently displayed in the gdviewer or thumbnail?
Private Sub thumb1_ItemClicked(ByVal idx As Long, ByVal button As MouseButton)
Call Display_page
End Sub
Private Sub Display_page()
lbPage.Caption = "Page " & GdViewer1.CurrentPage & " of " & GdViewer1.PageCount
End Sub