I put a GoSheet on the Goview to mimic a page.
I want the following behavour:
1. When one dimesion of the sheet is larger than the dimension of the view, the corresponding scrollbar should appear and the scroll range should be only the length of the sheet.
2. When one of the dimesion of the seet is smaller than the dimesion of the view, the corresponding scrollbar should disapear and the sheet should be position in the middle in that dimesion.
For example, if the sheet's height is larger than the view's height, the vertical scrollbar should appear so that the use can scroll vertically. If the sheet's height is shorter than the view's height, the vertical scrollbar should disappear and the user cannot scroll can the sheet is position centered vertically.
If both the height and width of the sheet is smaller than the view's height and width, both the scroll bars should disappear and the sheet should always stay in the center of the view.
Could you give me some ideas or clear me of the following relationships:
GoSheet position and GoView.DocPosition
GoSheet Bounds and Document.Bounds
It would be of great help if you can provide some sample code.