Recent

Author Topic: BGRA Controls  (Read 221590 times)

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: BGRA Controls
« Reply #375 on: August 14, 2019, 07:01:34 pm »
Note that to have the new glyph alignment and autosize of BCButtons, you need to set the property GlyphOldPlacement to False in the object inspector.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #376 on: August 18, 2019, 09:47:47 pm »
New BGRAControls 6.5

https://github.com/bgrabitmap/bgracontrols/releases/tag/v6.5

Fix combobox dropdown size on windows

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #377 on: November 03, 2019, 12:56:42 pm »
New BGRAControls v6.6
https://github.com/bgrabitmap/bgracontrols/releases/tag/v6.6

* Fix popup combobox
* Sprite Animation methods
* Fix deprecated code

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #378 on: December 20, 2019, 02:58:14 pm »
New BGRAControls v6.6.1
https://github.com/bgrabitmap/bgracontrols/releases/tag/v6.6.1

- Fix in ColorSpeedButton property TextAutoSize: now it ignores the text height as well for the AutoSize if the property is false, useful for example to put in an array of buttons with a form / panel with ChildSizing and having consistent width and height.

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #379 on: May 01, 2020, 03:15:52 pm »
New BGRAControls v6.7
https://github.com/bgrabitmap/bgracontrols/releases/tag/v6.7

-Fix ColorSpeedButton borders
-Anchors property for BCComboBox
-Added parent background property in TBCPanel
-Added transparency in TCustomControl descendants

What I found interesting is that despite all threads talking that TCustomControl descendants can't have transparency is not 100% true.

There's an option called csParentBackground in ControlStyle, so you can have for example a background gradient in a TBCPanel and put a TBCButtonFocus in top of it and it will be drawn like a transparent control.

Just adding this line:
Code: Pascal  [Select][+][-]
  1. ControlStyle := ControlStyle + [csParentBackground];

Enables the behaviour.

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #380 on: May 01, 2020, 03:28:32 pm »
Tetst of transparency attached. Please test on macos and linux.

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: BGRA Controls
« Reply #381 on: May 01, 2020, 03:34:30 pm »
It doesn't seem to work on Linux Mint.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #382 on: May 01, 2020, 03:36:37 pm »
Alright, thanks for the screenshot.  :)

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: BGRA Controls
« Reply #383 on: May 01, 2020, 06:19:02 pm »
So that's an improvement only for lucky Windows users.  :D
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #384 on: May 01, 2020, 11:22:29 pm »
So that's an improvement only for lucky Windows users.  :D

Yes, for now it is.

I've filed a bug: csParentBackground not working on Linux
https://bugs.freepascal.org/view.php?id=37005

Roland57

  • Sr. Member
  • ****
  • Posts: 416
    • msegui.net
Re: BGRA Controls
« Reply #385 on: May 01, 2020, 11:39:46 pm »
Hello!

I cannot compile BGRAControls 6.7:

Code: Pascal  [Select][+][-]
  1. bcpanel.pas(98,15) Error: There is no method in an ancestor class to be overridden: "SetParentBackground(const Boolean);"

Linux, Lazarus 1.8.4.

Maybe I made something wrong...

My projects are on Gitlab and on Codeberg.

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #386 on: May 01, 2020, 11:45:23 pm »
Hello!

I cannot compile BGRAControls 6.7:

Code: Pascal  [Select][+][-]
  1. bcpanel.pas(98,15) Error: There is no method in an ancestor class to be overridden: "SetParentBackground(const Boolean);"

Linux, Lazarus 1.8.4.

Maybe I made something wrong...

I'm not at the PC right now, but you can try on a more recent version of Lazarus?

Roland57

  • Sr. Member
  • ****
  • Posts: 416
    • msegui.net
Re: BGRA Controls
« Reply #387 on: May 01, 2020, 11:50:10 pm »
I'm not at the PC right now, but you can try on a more recent version of Lazarus?

Thank you for your answer. OK, I will try.
My projects are on Gitlab and on Codeberg.

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #388 on: May 02, 2020, 12:08:30 am »
I'm not at the PC right now, but you can try on a more recent version of Lazarus?

Thank you for your answer. OK, I will try.

Thanks for reporting I will try to make it compatible with older versions.

Edit: I tried adding $IF LCL_FULLVERSION but it always gray out the code, even if I have an higher version...
« Last Edit: May 02, 2020, 03:32:48 am by lainz »

Roland57

  • Sr. Member
  • ****
  • Posts: 416
    • msegui.net
Re: BGRA Controls
« Reply #389 on: May 02, 2020, 11:12:29 am »
Thanks for reporting I will try to make it compatible with older versions.

I installed Lazarus 2.0.8. Now I can compile BGRAControls 6.7.
« Last Edit: May 02, 2020, 11:14:33 am by Roland57 »
My projects are on Gitlab and on Codeberg.

 

TinyPortal © 2005-2018