SetViewPort
This form method lets you decide which part of a form is visible.
Usage |
frmForm.SetViewPort( nNewViewPortLeft, nNewViewPortTop ) |
This method accepts negative parameters. It shouldn't, since the form begins at 0,0. It scrolls the appropriate amount, revealing empty negative space. At least some of the time, the refresh from such a call is incomplete and, in some cases, clicking on the form moves things back to where they were. All in all, an ugly mess. Don't do this! |
Example |
* Force the user to look at the upper-left corner ThisForm.SetViewPort(0,0) |
See Also |