The document at:
https://lazarus-ccr.sourceforge.io/docs/lcl/controls/tcontrol.borderspacing.html leads me to understand that setting a control's BorderSpacing.InnerBorder can be used to set a margin around a TMemo's text. That doesn't seem to be happening for me. Is this by design?
Lazarus 2.2.2 (rev Unknown) FPC 3.2.2 x86_64-linux-gtk2
--------------------------------------------------------------------------------
TControl.BorderSpacing
Determines the inner and outer border spacing for this control.
Declaration
Source position: controls.pp line 1706
public property TControl.BorderSpacing : TControlBorderSpacing
read FBorderSpacing
write SetBorderSpacing;
Description
The outer border determines the minimal distance to sibling controls, the inner border is the area between the control's BoundsRect and ClientRect.
When a control sits in a cell of a table (Grid) control, its horizontal and vertical alignment inside the cell can be specified, too.
--------------------------------------------------------------------------------------
I've provided a sample project to demonstrate the "problem" and the workaround of making the TMemo a client of a TPanel.
Regards, Dennis