How do I draw a line on a Lazarus form?

itsols

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

TLama

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):

enter image description here

Or you can use a special component called TDividerBevel which except the single line adds to this optical divider also a caption:

enter image description here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How do I draw a line in Forth with OpenGL?

Basics of LiveCharts -- How do I draw a Line?

How do I draw an angled Line

C# How do I draw a line between two objects on a windows form?

In Lazarus how do I find the "real" font values used on Form1?

How do I remove the line if draw the new line

How can I draw a line in my form from another class?

Why can I not use the onClick event handler to draw shapes onto a form in lazarus?

How do I draw a Drop Shadow at any Location on a Form?

How do I use a function to draw a line in pyglet?

How do I draw a line along the center of the object

How do I draw an Ideal line between two headers?

How do I animate a line from my draw() function?

How do I draw a line over the Poisson curve?

How do I draw a line in CSS that starts wide and ends in a point

How do I draw a line connecting subplots in pyplot?

How do I draw a horizontal line between two circles with CSS?

How do I draw line from the outer most arc of the circle

How do I draw a vertical line from the middle of this button?

How do I get graphicsmagick to draw a line inside a BMP file?

python: how do I draw a line graph of the following function?

How do I form a new string from a parsed CSV line?

How do I get the form to be on the same line as by navigation buttons?

How do I create an application form line using css and html

how do I edit a character in string line with form input

How do I align the form fields horizontally in one line?

How can I draw a line beside a boxplot

how can I draw a line with title in React?

How do i get the graph to draw a line for constant 0 values using amcharts?

TOP Ranking

HotTag

Archive