Recent

Author Topic: BGRA Controls  (Read 220289 times)

andrew Bubble

  • Jr. Member
  • **
  • Posts: 57
Re: BGRA Controls
« Reply #480 on: November 29, 2023, 11:44:33 pm »
Hi Lainz

I am currently using BGRAControls V7.7, how do I upgrade to your latest.

Is it as simple as copying all the flies and directories from the latest and doing an IDE rebiuld.

Regards Andrew

paweld

  • Hero Member
  • *****
  • Posts: 934
Re: BGRA Controls
« Reply #481 on: November 30, 2023, 07:53:16 am »
Quote from: andrew Bubble
...
Is it as simple as copying all the flies and directories from the latest and doing an IDE rebiuld....
yes
Best regards / Pozdrawiam
paweld

petevick

  • Sr. Member
  • ****
  • Posts: 322
Re: BGRA Controls
« Reply #482 on: December 10, 2023, 11:10:00 am »
Due to compatibility issues, I need to install version 7.3 of the BGRA Controls, but the Online Package Manager installs version 8.0. Is there a way to force v7.3 to be installed ??
Pete Vickerstaff
Linux Mint 21.1 Cinnamon, Lazarus 2.2.6, FPC 3.2.2

paweld

  • Hero Member
  • *****
  • Posts: 934
Re: BGRA Controls
« Reply #483 on: December 10, 2023, 11:54:32 am »
@petevick: no, OPM installs the version it has in its library. Most often it is the latest version reported by the component's author.   
But it is very easy to install the package in Lazarus manually. You download the component package you want to install ( bgracontrosl 7.3: https://github.com/bgrabitmap/bgracontrols/archive/refs/tags/v7.3.zip and the required bgrabitmap: https://github.com/bgrabitmap/bgrabitmap/archive/refs/tags/v11.5.8.zip ).
You unpack both archives and then move the unpacked folders to the "components" folder in the Lazarus directory.
You launch lazarus and in the menu select "Package > Opena Package File (lpk)" and then point to the file "bgrabitmap\bgrabitmappack.lpk" in the path where you placed the component. A package window will open, where you press "Compile". Then you again choose "Package > Opena Package File (lpk)" you point to the file you point to "bgracontrols\bgracontrols.lpk". In the package window, you press "Compile", and when the compilation is complete, you press "Use > Install". After rebuilding the IDE, the components should be visible on the component palette.
Best regards / Pozdrawiam
paweld

petevick

  • Sr. Member
  • ****
  • Posts: 322
Re: BGRA Controls
« Reply #484 on: December 10, 2023, 12:08:48 pm »
Thanks for the reply paweld, that sounds like just what I need. Many thanks  :D
Pete Vickerstaff
Linux Mint 21.1 Cinnamon, Lazarus 2.2.6, FPC 3.2.2

lainz

  • Hero Member
  • *****
  • Posts: 4388
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #485 on: December 12, 2023, 02:29:19 am »
Thanks for the reply paweld, that sounds like just what I need. Many thanks  :D

Hi.

What's wrong with the newest version that you need to get back to old version?

Just to see if we can do something.

 ;)

petevick

  • Sr. Member
  • ****
  • Posts: 322
Re: BGRA Controls
« Reply #486 on: December 12, 2023, 07:58:26 am »
Hi.

What's wrong with the newest version that you need to get back to old version?

Just to see if we can do something.

 ;)
Hi lainz, I'm sure there's nothing wrong with the newest version, it's just that I use Lazarus in various OS VM's to check and compile projects (Windows, Linux x64, x32 etc), I know it's not ideal, but there you go. I've just added another Linux flavour VM, so it's to keep the consistency across all VM's. I've since found the easiest way is to copy an existing Linux .lazarus folder to the new VM.
I suppose really I should get brave and update all of the VM's to the latest version  :o
Pete Vickerstaff
Linux Mint 21.1 Cinnamon, Lazarus 2.2.6, FPC 3.2.2

Josh

  • Hero Member
  • *****
  • Posts: 1254
Re: BGRA Controls
« Reply #487 on: December 26, 2023, 05:37:39 pm »
bgracontrol v8

Lazarus 3.1 (rev lazarus_3_0-11-gd3a957ea98) FPC 3.2.3 i386-win32-win32/win64

bgrabitmap dev 10.5.8

bgacontrols v8.0 nowgetting error

Code: Pascal  [Select][+][-]
  1. bgraknob.pas(162,47) Error: Incompatible types: got "TPointF" expected "Single"
« Last Edit: December 26, 2023, 05:39:10 pm by Josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

circular

  • Hero Member
  • *****
  • Posts: 4122
    • Personal webpage
Re: BGRA Controls
« Reply #488 on: December 27, 2023, 05:40:44 am »
Hi Josh,

I've applied a fix on the dev-bgracontrols branch. It is as well related to FPC 3.2.3 as was the error you encountered with BGRABitmap.

Does it compile now?

Regards
Conscience is the debugger of the mind

Josh

  • Hero Member
  • *****
  • Posts: 1254
Re: BGRA Controls
« Reply #489 on: December 27, 2023, 08:35:39 pm »
Hi

Yep compiled and all appears good.

thanks for your rapid fix  :)
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

circular

  • Hero Member
  • *****
  • Posts: 4122
    • Personal webpage
Re: BGRA Controls
« Reply #490 on: December 28, 2023, 05:24:54 pm »
You're very welcome.

I am glad to keep BGRABitmap and BGRAControls afloat   :)
Conscience is the debugger of the mind

JohnSmith

  • New Member
  • *
  • Posts: 21
Re: BGRA Controls
« Reply #491 on: January 13, 2024, 11:45:01 am »
Hi

Is there something I missing when compiling aarch64. Heap trace report memory leaks when added a DTAnalogGauge.
I use the latest version 8
FPC 3.2.2
Lazarus V3

Added a timer with code below
DTAnalogLoad.Position:= Random (5000);
if DTAnalogLoad.Position > 3000 then
   DTAnalogLoad.FaceSettings.ColorEnd := Clred;
else
  DTAnalogLoad.FaceSettings.ColorEnd := ClLime;


Heaptrace +- 2252 with in a 2 sec runtime
Call trace for block $0000007FA4533B80 size 0
$00000000009504A4 GETCUSTOMPENSTYLE, line 1159 of bgrapen.pas
$00000000009511D8 COMPUTEPOLYLINE, line 1288 of bgrapen.pas
$00000000008649A8 DRAWLINEANTIALIAS, line 1012 of unibitmapgeneric.inc
$0000000000842170 DRAWGAUGENEEDLE, line 394 of dtanaloggauge.pp
$0000000000841334 DRAWGAUGE, line 176 of dtanaloggauge.pp
$00000000008422F0 PAINT, line 455 of dtanaloggauge.pp
$0000000000584560 WMPAINT, line 58 of include/graphiccontrol.inc
$0000000000435B64
$0000000000579930 WNDPROC, line 2299 of include/control.inc
$0000000000577A24 PERFORM, line 1625 of include/control.inc
$0000000000569984 PAINTCONTROLS, line 4970 of include/wincontrol.inc
$00000000005696A4 PAINTHANDLER, line 4881 of include/wincontrol.inc
$000000000056E300 WMPAINT, line 6825 of include/wincontrol.inc
$0000000000584C7C WMPAINT, line 103 of include/customcontrol.inc
$0000000000435B64
$0000000000579930 WNDPROC, line 2299 of include/control.inc
Call trace for block $0000007FA4533AA0 size 0
$00000000009504A4 GETCUSTOMPENSTYLE, line 1159 of bgrapen.pas
$00000000009511D8 COMPUTEPOLYLINE, line 1288 of bgrapen.pas
$00000000008649A8 DRAWLINEANTIALIAS, line 1012 of unibitmapgeneric.inc
$0000000000841D44 DRAWGAUGESCALE, line 352 of dtanaloggauge.pp
$0000000000841324 DRAWGAUGE, line 175 of dtanaloggauge.pp
$00000000008422F0 PAINT, line 455 of dtanaloggauge.pp
$0000000000584560 WMPAINT, line 58 of include/graphiccontrol.inc
$0000000000435B64
$0000000000579930 WNDPROC, line 2299 of include/control.inc
$0000000000577A24 PERFORM, line 1625 of include/control.inc
$0000000000569984 PAINTCONTROLS, line 4970 of include/wincontrol.inc
$00000000005696A4 PAINTHANDLER, line 4881 of include/wincontrol.inc
$000000000056E300 WMPAINT, line 6825 of include/wincontrol.inc
$0000000000584C7C WMPAINT, line 103 of include/customcontrol.inc
$0000000000435B64
$0000000000579930 WNDPROC, line 2299 of include/control.inc

Task manager startup +-26MB
Task manager +-10 hours 127.4MB VM at 143MB
« Last Edit: January 13, 2024, 12:10:08 pm by JohnSmith »

Ernest

  • Newbie
  • Posts: 6
Re: BGRA Controls
« Reply #492 on: January 16, 2024, 03:06:10 pm »
Hallo @Lainz,

Thanks for keep updating both BGRABitmap and BGRAControls.
Your last improvement by adding a Color property of BCPanel was great!

I'd have four suggestions to TBCComboBox component (numbering below in order of increasing effort, more or less):
  • adding a color property to set "original" component backgroud (see attached pic)
  • adding a horizontal line between the items in combo box with width and color property
  • Drop Down menu as one class -> one property like TBCButtonState
  • separated class for triangle to set parameters like color, width, proportion, etc. Maybe it will be enough to add one of the buttons on the triangle's place? As design idea please see attached pic.

Please consider above suggestions while updating the components next time!

Best wishes,
Ernest

hedgehog

  • New Member
  • *
  • Posts: 30
Re: BGRA Controls
« Reply #493 on: January 17, 2024, 01:38:44 pm »
Hi all.

I have developed a small ProgressRing (like WinUI3 ProgressRing).
There are two modes: Determinate and Indeterminate.

Honestly, I'm not sure if I used Canvas2D correctly for drawing or should I choose CanvasBGRA?

lainz

  • Hero Member
  • *****
  • Posts: 4388
    • https://lainz.github.io/
Re: BGRA Controls
« Reply #494 on: January 17, 2024, 02:56:20 pm »
Hallo @Lainz,

Thanks for keep updating both BGRABitmap and BGRAControls.
Your last improvement by adding a Color property of BCPanel was great!

I'd have four suggestions to TBCComboBox component (numbering below in order of increasing effort, more or less):
  • adding a color property to set "original" component backgroud (see attached pic)
  • adding a horizontal line between the items in combo box with width and color property
  • Drop Down menu as one class -> one property like TBCButtonState
  • separated class for triangle to set parameters like color, width, proportion, etc. Maybe it will be enough to add one of the buttons on the triangle's place? As design idea please see attached pic.

Please consider above suggestions while updating the components next time!

Best wishes,
Ernest

Thanks. Unfortunatelly I have no time to implement new things. But feel free to add these yourself if you can and provide a pull request.

Hi all.

I have developed a small ProgressRing (like WinUI3 ProgressRing).
There are two modes: Determinate and Indeterminate.

Honestly, I'm not sure if I used Canvas2D correctly for drawing or should I choose CanvasBGRA?

Thanks. I've added this to dev-bgracontrols with the demo app as well.

 

TinyPortal © 2005-2018