Okay, gotcha...
If you use the example as a tutorial on setting up the scroll bars, here's what you need to tie it in to ImageMan:
In the "initial" part (where you first display the image):
STORE 0 TO ThisForm.oleSlideVert.Value, ThisForm.oleSlideHorz.Value
ThisForm.oleSlideVert.Max = IIF(ThisForm.oleDocument.ImageHeight > ThisForm.oleDocument.Height, ;
(ThisForm.oleDocument.ImageHeight - ThisForm.oleDocument.Height) + 1, ;
ThisForm.oleDocument.ImageHeight)
ThisForm.oleSlideHorz.Max = IIF(ThisForm.oleDocument.ImageWidth > ThisForm.oleDocument.Width, ;
(ThisForm.oleDocument.ImageWidth - ThisForm.oleDocument.Width) + 1, ;
ThisForm.oleDocument.ImageWidth)
In the Scroll Method for the vertical scroll:
IF !EMPTY(ThisForm.oleDocument.Picture)
ThisForm.oleDocument.ScaleTop = This.Value
ThisForm.oleDocument.Refresh
ENDIF
In the Scroll Method for the Horizontal Scroll:
IF !EMPTY(ThisForm.oleDocument.Picture)
ThisForm.oleDocument.ScaleLeft = This.Value
ThisForm.oleDocument.Refresh
ENDIF
This works for me!
Cheryl A Bellucci