WaynesFrame class
A rectangular container control whose entire area is painted with a configurable BackgroundFill. Used to group other controls on a WaynesForm, with the same layout / sizing surface as any other custom control.
The default fill is a solid mid-grey (WAYNESCOLOR_GREY — &H808080); change it by reaching into the Fill.ColorPoints collection.
Private Sub Form_Load()
Frame1.BackgroundFill.ColorPoints.SetSolidColor vbWhite
End Sub
Frames work well as containers for Dock-positioned children. Set the frame’s own Dock to tbDockFill so it claims the form’s body, then dock its children to tbDockTop / tbDockLeft / tbDockFill / etc. — the docking calculation walks the container tree, so children dock to the frame’s client area rather than to the form. The order in which the children are added still determines which edges they claim first.
Properties
Anchors
Which sides of the control are pinned to its container during resize. Anchors. Inherited.
BackgroundFill
The Fill that paints the frame’s entire client area.
Dock
How the control is docked inside its container. A member of DockMode. Inherited. Default: tbDockNone.
Height
The control’s height in pixels. PixelCount. Inherited.
Left
The horizontal offset of the control’s left edge from its container, in pixels. PixelCount. Inherited.
Name
The unique design-time name of the control on its parent form. String. Inherited.
Top
The vertical offset of the control’s top edge from its container, in pixels. PixelCount. Inherited.
Visible
Whether the control is currently displayed. Boolean. Inherited. Default: True.
Width
The control’s width in pixels. PixelCount. Inherited.