BUG: Picture Box Limits CurrentX & CurrentY of -32768 to 32767 (150236)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
This article was previously published under Q150236 SUMMARY
The Picture box limits setting of the CurrentX and CurrentY values to
between -32768 to +32767 twips, which are the limits of a signed integer.
This behavior occurs because CurrentX and CurrentY are stored as Singles.
The Height and Width properties of the Picture box can be made larger than
the limits given.
RESOLUTION
To set the CurrentX and CurrentY values to larger values than the limits
given, use the PSet method. For example, the following line of code sets
the X and Y positions to 40000, 40000:
Picture1.PSet (40000, 40000), Picture1.BackColor
A debug print of the CurrentX and CurrentY values after the statement above
is executed confirms that they hold the correct values of 40000,40000.
STATUS
Microsoft has confirmed this to be an issue in the Microsoft products
listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbBug KB150236 |
---|
|