I often use a TPanel or TGroupBox to group my form controls.
Now I need to draw just a straight line like the border of a Panel or GroupBox.
How do I do this on LAZARUS?
Thanks in advance!
Note: The technique must work on both Linux and Windows
As an optical line separator you should use either the TBevel
component with Shape
property set to one of the following values bsTopLine
, bsBottomLine
, bsLeftLine
or bsRightLine
depending on which line you currently need and resize it to a smaller size (in your case you can use bsTopLine
or bsBottomLine
and resize the bevel vertically):
Or you can use a special component called TDividerBevel
which except the single line adds to this optical divider also a caption:
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments