FIX: ScaleLeft and ScaleTop Do Not FunctionID: Q180634
|
The ScaleLeft and ScaleTop properties of a Form object do not affect the
position of graphical renderings that are drawn with graphical methods such
as DrawLine and DrawCircle.
In addition, the ScaleLeft and ScaleTop properties of a PictureBox object
do not affect the position of graphical renderings that are drawn with
graphical methods such as DrawLine and DrawCircle unless the methods are
used in conjunction with the ScaleHeight and ScaleWidth properties.
For a PictureBox control, use the ScaleHeight and ScaleWidth properties in conjunction with the ScaleTop and ScaleLeft properties. For example:
Private Sub Command1_Click()
PictureBox1.ScaleTop = 100
PictureBox1.ScaleLeft = -100
PictureBox1.ScaleHeight = -200
PictureBox1.ScaleWidth = 200
PictureBox1.DrawLine 0, 0, 50, 50
End Sub
If you do not have a PictureBox control visible in your Control Toolbox, do
the following:
Microsoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article.
This problem was corrected in Windows CE Toolkit for Visual Basic 6.0.
Private Sub Command1_Click()
Form1.ScaleTop = 1000
Form1.ScaleLeft = 1000
Form1.DrawLine 0, 0, 1000, 4000
End Sub
Additional query words: wince vbce vbce5 vbce6
Keywords : kbToolkit kbVBp kbVBp500bug kbVBp600fix kbWinCE kbWinCE100 kbGrpVB
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: March 3, 1999