Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use idGoToZoomOptions in Visual Basic?

Status
Not open for further replies.

guillermogp

Programmer
Aug 15, 2006
20
0
0
IT
I have the next sub in a Visual Basic program for InDesign CS, but I do not know hot to use the "dGoToZoomOptions.idFitWindow" property. Is there anybody who can help me?
Code:
Private Sub pageminusbutton_Click()
' This button is to go to the previous page
' and to update the namebox that indicates
' the current page
Set myindesign = CreateObject("InDesign.Application.CS")
Set mydoc = myindesign.ActiveDocument
Set currentpage = myindesign.ActiveWindow.ActivePage
numpag = currentpage.DocumentOffset
myindesign.ActiveWindow.ActivePage = mydoc.Pages.Item(numpag - 1)
Set currentpage = myindesign.ActiveWindow.ActivePage
namebox.Text = currentpage.Name
'myindesign.WindowState = idGoToZoomOptions.idFitWindow
'this last line is not correct
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top