Skip to content

BorderStyle

The Win32 frame style used by a WaynesForm window. Determines whether the window has a thick or thin border, whether it can be resized by dragging an edge, and whether it shows a normal title bar or the smaller tool-window title bar. Used by WindowsFormOptions.BorderStyle.

ConstantValueDescription
tbNone0No border at all --- the form is a borderless, captionless rectangle.
tbFixedSingle1Thin single-line border; size is fixed at run time.
tbFixedSizable2Standard resizable border with a normal title bar. The default for newly-constructed WindowsFormOptions.
tbFixedDialog3Dialog-frame border; size is fixed and the system menu offers only Move / Close.
tbFixedToolWindow4Tool-window border with the smaller title bar; size is fixed.
tbSizableToolWindow5Tool-window border with the smaller title bar; the window is resizable.

Most border styles cannot be combined with MinimizeButton or MaximizeButton --- only tbFixedSizable shows full sizing controls. Setting MinimizeButton or MaximizeButton to True on a window style that does not include them has no effect.

twinBASIC and LOGO copyright of "WaynePhillipsEA" author