Recent

Author Topic: BGRA example please  (Read 1450 times)

RDP1974

  • New Member
  • *
  • Posts: 12
BGRA example please
« on: September 14, 2019, 07:26:02 pm »
hello,
I'm newbie about TBGRA components

1) its possible to have a TBGRABitmap control with scrollbars?
2) can be possible to have a little piece of software that puts a layer and draw a text inside the layer?

Thank you

Thaddy

  • Hero Member
  • *****
  • Posts: 14358
  • Sensorship about opinions does not belong here.
Re: BGRA example please
« Reply #1 on: September 14, 2019, 08:52:07 pm »
hello,
I'm newbie about TBGRA components

1) its possible to have a TBGRABitmap control with scrollbars?
2) can be possible to have a little piece of software that puts a layer and draw a text inside the layer?

Thank you
1: the container needs the scrollbars... not the bitmap
2: there are many examples, provided the underlying image format supports transparency.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: BGRA example please
« Reply #2 on: September 14, 2019, 09:03:41 pm »
Hi!

1. Place a TScrollBox (Page "Additional") on your form and place a BGRA component inside.

2.  BGRA tutorial with 16 chapters you can find here:
     https://wiki.freepascal.org/BGRABitmap_tutorial
     You will see that it's possible!

Winni

RDP1974

  • New Member
  • *
  • Posts: 12
Re: BGRA example please
« Reply #3 on: September 15, 2019, 06:21:31 am »
Thank you, seems very well written.
But, Why bgra ribbon control doesn’t compile?
(Latest lazarus fpc, used onlinepackagemanager)

 

TinyPortal © 2005-2018