Recent

Author Topic: Draw line under menu bar?  (Read 3135 times)

Pascaluvr

  • Full Member
  • ***
  • Posts: 216
Draw line under menu bar?
« on: February 29, 2012, 12:57:53 pm »
I would like to be able to draw a line under my menu bar on a form.

I assume I would need to add a TCanvas to my form and draw a line on that - but - where in the IDE is the option to add a TCanvas?

Even if that is not the solution - where is this option anyway?

any help much appreciated.
Windows 7, Lazarus 1.0.8, FPC 2.6.2, SQLite 3

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Draw line under menu bar?
« Reply #1 on: February 29, 2012, 01:06:34 pm »
In this case, rather than painting on the Canvas of a Form, you can add some component, for example Bevel: TBevel (from Additional palette) and set its property Shape to bsTopLine.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Pascaluvr

  • Full Member
  • ***
  • Posts: 216
Re: Draw line under menu bar?
« Reply #2 on: March 01, 2012, 08:32:21 am »
Thanks Blaazen - that did great.  I guess I would have preferred a simple black line, but hey, it doesn't matter that much.

Thank you for the response.
Windows 7, Lazarus 1.0.8, FPC 2.6.2, SQLite 3

 

TinyPortal © 2005-2018