Recent

Author Topic: Combining pen styles  (Read 525 times)

Jonny

  • Jr. Member
  • **
  • Posts: 55
Combining pen styles
« on: January 10, 2025, 04:08:09 pm »
Looking to combine two TFPPenStyle ie psDot with psinsideFrame but cannot find any documentation.

In fpcanvas.pp there is this:

Code: Pascal  [Select][+][-]
  1.   TFPPenStyle = (psSolid, psDash, psDot, psDashDot, psDashDotDot, psinsideFrame, psPattern,psClear);
  2.   TFPPenStyleSet = set of TFPPenStyle;
  3.  

Is it possible? Looking for instructions on TFPPenStyleSet but can find none.

wp

  • Hero Member
  • *****
  • Posts: 12525
Re: Combining pen styles
« Reply #1 on: January 10, 2025, 04:22:12 pm »
Your line 2 in your copy from fpcanvas.pp is the only occurrence of "TFPPenStyleSet" within the entire Lazarus and FPC code base. So, no: you cannot combine pen styles.

BTW, there is a nice demo about pen and brush styles in folder examples/pen_brush of your Lazarus installation (it only uses the LCL pen and brush, though).
« Last Edit: January 10, 2025, 04:24:58 pm by wp »

Jonny

  • Jr. Member
  • **
  • Posts: 55
Re: Combining pen styles
« Reply #2 on: January 10, 2025, 09:45:28 pm »
Quote from: wp
Your line 2 in your copy from fpcanvas.pp is the only occurrence of "TFPPenStyleSet" within the entire Lazarus and FPC code base.

I noticed that too, shame, TFPPenStyleSet did confuse me!

Quote from: wp
BTW, there is a nice demo about pen and brush styles in folder examples/pen_brush

Thank you.

 

TinyPortal © 2005-2018