Recent

Author Topic: BGRA Controls  (Read 222321 times)

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: BGRA Controls
« Reply #450 on: December 12, 2020, 06:25:55 pm »
@lucamar: that's what I am talking about
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #451 on: February 16, 2021, 06:42:08 pm »
BGRAControls v7.2
https://github.com/bgrabitmap/bgracontrols/releases/tag/v7.2

@circular17 redundant copyright
@circular17 linking exception available as SPDX (for LGPL-3.0)
@circular17 update sprite on change
@circular17 implement AutoSize, add 180 rotation, implement Color property
@circular17 use AssignToBitmap, handle more formats
@circular17 Assign sprite to and from animated Gif
@circular17 autosize when sprite count changes, fix memory leak
@circular17 unnecessary trunc

The last fix solves the compiling issues.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #452 on: April 18, 2021, 10:22:19 pm »
Hi, I found a bug that produces a memory leak and closing bad the application if you use the TBGRASVGImageList.

Bug:
https://forum.lazarus.freepascal.org/index.php/topic,54216.msg402599.html#msg402599

To solve (now), try using it without design mode, create the object with code, and comment this method:

Code: Pascal  [Select][+][-]
  1. procedure TBGRASVGImageList.ReadData(Stream: TStream);
  2. var
  3.   FXMLConf: TXMLConfig;
  4. begin
  5.   FXMLConf := TXMLConfig.Create(Self);
  6.   try
  7.     Stream.Position := 0;
  8.      // COMMENT THESE LINES
  9.     {FXMLConf.LoadFromStream(Stream);
  10.     Load(FXMLConf);}
  11.   finally
  12.     FXMLConf.Free;
  13.   end;
  14. end;

Hope we can find a compatible solution with current designed forms.

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: BGRA Controls
« Reply #453 on: April 18, 2021, 11:25:23 pm »
There is small memory leak with some XML functions, maybe that's not so important.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #454 on: April 19, 2021, 12:24:01 am »
There is small memory leak with some XML functions, maybe that's not so important.

The problem is not the leak itself, just that the app doesn't close properly sometimes.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #455 on: April 19, 2021, 02:54:03 am »
There is small memory leak with some XML functions, maybe that's not so important.

Oh I see, yes you're right. The problem is that I detected the bug in an application that has an access violation when closing  :(

I think both things was related, but maybe not, and is just a memory leak.

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: BGRA Controls
« Reply #456 on: April 19, 2021, 08:42:24 am »
Yeah. That may be unrelated.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #457 on: May 15, 2021, 06:42:07 pm »
In master branch contributions to image manipulation component and autosize for theme button.
No new version yet.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #458 on: May 31, 2021, 02:57:41 pm »
BGRAControls v7.3
- Contributions to image manipulation component and autosize for theme button

https://github.com/bgrabitmap/bgracontrols/releases/tag/v7.3

Josh

  • Hero Member
  • *****
  • Posts: 1271
Re: BGRA Controls
« Reply #459 on: June 24, 2021, 06:12:19 pm »
placing a BGRASHAPE and then setting BorderStyle to psClear, causes a crash and access violation in IDE.
Any project that previously has this set will not open.

bgracontrols 7.3
bgrabitmap 11.3.1

The best way to get accurate information on the forum is to post something wrong and wait for corrections.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #460 on: October 26, 2021, 01:26:42 am »
I've added in dev branch 3 new controls: material edit, material spin edit & material float spin edit.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #461 on: March 12, 2022, 01:48:10 am »
New BGRAControls v7.4
https://github.com/bgrabitmap/bgracontrols/releases/tag/v7.4

- Fix compilation in main (bcgamegrid edit)
- Added disabled color for text (BCButton)
- Added material spin edit, material edit, material float spin edit
- Added Rotation and DrawText in BCRadialProgressBar
- Added TabOrder in TBCButtonFocus

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: BGRA Controls
« Reply #462 on: March 12, 2022, 06:16:09 am »
Thanks for maintaining those beautiful controls  :)
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #463 on: March 19, 2022, 08:17:35 pm »
Thanks for maintaining those beautiful controls  :)

Thank you.  :)

six1

  • Full Member
  • ***
  • Posts: 117
Re: BGRA Controls
« Reply #464 on: March 30, 2022, 09:27:14 am »
Hi lainz, Circular

i've made a few improvements on BCRadialProgressBar.
-New Component property "digits" to format Value on Progressbar. ( digits=0: 10%, digits=1: 10.1% a.s.o.)
-Background transparency on Color clNone
-LineBkgColor transparency on Color clNone

Maybe it's usefull for someone else.

Best, Michael


 

TinyPortal © 2005-2018