Product : Engine, Version : 5.0.0.1033, ArticleID : 41023697

HowTo : SizeToContent do not work ok with VectorDraw

Article41023697
TypeHowTo
ProductEngine
Version5.0.0.1033
Date Added9/8/2004
Submitted byMario Ceriani
Keywords

Subject

SizeToContent do not work ok with VectorDraw

Summary

Check the attached project.
If I click in the textbox and after on VDPro black area the VDPro is resized.

Solution

Instead of using the SizeToContent like:
Private Sub Form_Resize()
    vd.SizeToContent Me.hWnd
End Sub
Use code like:
Private Sub Form_Resize()
    vd.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight
End Sub