TerGetPageOffset
Retrieve the visible page offset and page dimension.
boolean TerGetPageOffset(page, rel)
int page; | The page number to retrieve the offset. |
int rel; | This variable can be set to one of the following constants: |
| REL_TEXT_BOX | Get offset relative to the top of the text area. |
| REL_WINDOW | Get offset relative to the top of the window's client area. |
Upon a successful return from this method, the following information can be retrieved by using TerGetOutInt methods:
int x; | Page offset in the x direction in screen units. Upon a successful return from this method, this value can be retrieve as following: x=tej.TerGetOutInt("X") |
int y; | Page offset in the y direction in screen units. Upon a successful return from this method, this value can be retrieve as following: y=tej.TerGetOutInt("Y") |
int width; | Visible page width in screen units. Upon a successful return from this method, this value can be retrieve as following: width=tej.TerGetOutInt("Width") |
int height; | Visible page height in screen units. Upon a successful return from this method, this value can be retrieve as following: height=tej.TerGetOutInt("Height") |
Return Value: This function returns true if the page is visible.