Skip to content

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 members as any other custom control.

The default fill is a solid mid-grey (WAYNESCOLOR_GREY --- &H808080); change it by accessing the Fill.ColorPoints collection.

vb
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 traverses 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 attached 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.

twinBASIC and LOGO copyright of "WaynePhillipsEA" author