Indeed there is some handy ProcessBook code for display files.
The following will turn the scrollbars off:
Code:Private Sub Display_Open()
Call SetScrollBars(pbOff, pbOff)
End Sub
Then as a safety net you can always set the view of the display when the user scrolls the display. There is an event "Scroll" that belongs to the Display object, so I would add:
Code:
Private Sub Display_Scroll(ByVal lLeft As Long, ByVal lTop As Long, ByVal lWidth As Long, ByVal lHeight As Long, ByVal lDeltaX As Long, ByVal lDeltaY As Long)
Call SetViewPort(15000, -15000, ThisDisplay.ViewHeight, ThisDisplay.ViewWidth)
End Sub
This way, when a user tries to scroll it always stays in the top left of the display area. Obviously just tailor the position of the display and width/height as you need.
Enjoy.
Rhys.
OSIsoft PI System SpecialistsPI consultancy on PI Systems, PISDK, AFSDK, OLEDB etc and PI custom developments. Well pretty much anything to do with PI!