Sign in Join
FPDoc Onlineexperiment

TCustomForm.FFormBorderStyle variable

Member of TCustomFormprotectedIn unit Forms

The border style affects the title bar, border, icon(s), and resize behavior for the form.

Declaration

pascal
FFormBorderStyle: TFormBorderStyle

Description

BorderStyle is a TFormBorderStyle property used to control the appearance of the border on a form. The default value is bsSizeable and displays the standard border for a sizeable window. But it could, for example, be a dialog form or a tool window, or could be non-sizeable. See TFormBorderStyle for the enumeration values allowed in the property and their meanings.

Changing the value for the property causes other properties in the form instance to be updated:

AutoScroll
Disabled when the property contains a value other than bsSizeable or bsSizeToolWin.
BorderIcons
Updated at run-time when the new property value requires a different set of default border icons than the previous value.
Icon, SmallIconHandle, BigIconHandle
Updated at run-time by performing the CM_ICONCHANGED control message.
Menu
Updated at run-time to create (or re-create) the window handle for a TMainMenu instance using the Handle for the form.

In TCustomForm (and TForm), BorderStyle is slightly different (has a different base type) from the TCustomControl.BorderStyle property. When the form is put into another control the window borders depend on the widgetset. There are no borders under GTK.

This description is the one of Forms.TCustomForm.BorderStyle.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.