VLPropertyList Reference

MethodMove

(For advanced usage)
See Also See Also Applies To Applies To

VLPropertyList control will call this method of an editor when it needs to position the editor over a property at the beginning of an editing session. It will call this method before the editor is made visible.

 

Syntax

object.Move (ByVal nLeft As Single,ByVal nTop As Single ByVal nWidth As Single ByVal nHeight As Single)

 

The Move method syntax has these parts:

PartDescription
object An object expression evaluating to an object of CEditor type.
nLeft An expression value of type single, specifying the desired position of the left edge of editor window.
nTop An expression value of type single, specifying the desired position of the top edge of editor window.
nWidth An expression value of type single, specifying the desired width of editor window.
nHeight An expression value of type single, specifying the desired height of the editor window.

 

Remark

The editor should in turn position itself as requested through this method. The values will be in the scale units as specified by the ScaleMode property of the editor. A sample implementation with ScaleMode setting of vbPixels is as shown here :

Private Sub CEditor_Move(ByVal nLeft As Single, _
   ByVal nTop As Single, _
   ByVal nWidth As Single, ByVal nHeight As Single)
Dim rc  As Long
   rc = SetWindowPos(hWnd, 0, nLeft, nTop, nWidth, nHeight, SWP_NOZORDER)
End Sub