Recent

Author Topic: BCLea Components (former BComponents)  (Read 2235 times)

bobby100

  • Full Member
  • ***
  • Posts: 220
    • Malzilla
BCLea Components (former BComponents)
« on: June 14, 2024, 04:25:17 pm »
Edit: BComponents are now part of BGRA Controls under the name BCLea components

Hi folks,

BComponents is a package containing 4 graphical components at the moment - BSelector, BRingSlider, BLED and BLCDDisplay.
The components are using BGRABitmap and are inherited from TCustomComponent.

Code from some prior work is used (based on or inspired by):
- BCFluentProgressRing by hedgehog (now part of the BGRAControls) - https://github.com/bgrabitmap/bgracontrols/blob/master/bcfluentprogressring.pas
- TLCDDisplay by Werner Pamler (wp) and me (now part of IndustrialStuff) - https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/industrialstuff/
- Forum help from circular and lainz - https://forum.lazarus.freepascal.org/index.php/topic,67497.0.html

BComponents repository: https://gitlab.com/bobby100/bcomponents (deprecated)

Suggestions, code improvements etc. are welcome.

lainz

  • Hero Member
  • *****
  • Posts: 4572
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BComponents
« Reply #1 on: June 14, 2024, 05:26:00 pm »
Looking good =)

You want to join us to BGRAControls team at BGRABitmap organization?
https://github.com/orgs/bgrabitmap/people

Basically the credits remains the same, the controls are yours, just that are available with BGRAControls package.

bobby100

  • Full Member
  • ***
  • Posts: 220
    • Malzilla
Re: BComponents
« Reply #2 on: June 14, 2024, 05:51:50 pm »
Looking good =)

You want to join us to BGRAControls team at BGRABitmap organization?
https://github.com/orgs/bgrabitmap/people

Basically the credits remains the same, the controls are yours, just that are available with BGRAControls package.
Thank you lainz :)
Do you think the quality of my code is good enough to be included in BGRAControls?
It was more of a trial and error than really having an understanding of the BGRABitmap.
And yes, I would be glad to join the group.

lainz

  • Hero Member
  • *****
  • Posts: 4572
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BComponents
« Reply #3 on: June 14, 2024, 09:53:49 pm »
Looking good =)

You want to join us to BGRAControls team at BGRABitmap organization?
https://github.com/orgs/bgrabitmap/people

Basically the credits remains the same, the controls are yours, just that are available with BGRAControls package.
Thank you lainz :)
Do you think the quality of my code is good enough to be included in BGRAControls?
It was more of a trial and error than really having an understanding of the BGRABitmap.
And yes, I would be glad to join the group.

Yes these controls looks good for me =)

I've sent you an invitation.

When you're done accepting it, clone bgracontrols repository and switch to dev-bgracontrols branch, then add your own controls.

bobby100

  • Full Member
  • ***
  • Posts: 220
    • Malzilla
Re: BComponents
« Reply #4 on: June 23, 2024, 02:06:52 pm »
Finally, I did it - the themes are implemented.

There are a couple of bugs, but it isn't a disaster:
- changing mouse move direction at changing the value of BRingSlider/BSelector isn't detected
- changing width/height of the BRingSlider/BSelector have graphic artifacts if width<>height
- range check for parameters isn't implemented at all
- BRingSlider - graphic mismatch after lowering the MaxAngle

I guess it is ready now for merge into BGRAControls

lainz

  • Hero Member
  • *****
  • Posts: 4572
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BComponents
« Reply #5 on: June 23, 2024, 03:36:34 pm »
Finally, I did it - the themes are implemented.

I guess it is ready now for merge into BGRAControls

Cool. If you have any questions just ask.
Remember that you must use dev branch...
« Last Edit: June 23, 2024, 04:02:34 pm by lainz »

bobby100

  • Full Member
  • ***
  • Posts: 220
    • Malzilla
Re: BComponents
« Reply #6 on: June 23, 2024, 07:13:13 pm »
Well, I do have questions...
Should a put all the BComponents in a separate subfolder or just mix it with other components? I ask this because there is a demo coming with BComponents, and also the ThemeBuilder including a couple of themes (just two at the moment, but I'll make some more).
Is there some naming convention? My current unit names aren't "unique enough" to be easily integrated.
I see that some file names are all lowercase, but some small number are mixed-case. Is there a convention?

How about the pallet icons? Are the resource files generated at compiling the package, or need to be prepared before?
TBLCDDisplay also contains editors that need to be registered. Where is the right place to do so?

lainz

  • Hero Member
  • *****
  • Posts: 4572
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BComponents
« Reply #7 on: June 23, 2024, 10:02:28 pm »
Well, I do have questions...
Should a put all the BComponents in a separate subfolder or just mix it with other components? I ask this because there is a demo coming with BComponents, and also the ThemeBuilder including a couple of themes (just two at the moment, but I'll make some more).

In the same folder of the other controls. The demo in the "test" folder. Themes in "styles" with an extension unique for each control.

Is there some naming convention? My current unit names aren't "unique enough" to be easily integrated.
I see that some file names are all lowercase, but some small number are mixed-case. Is there a convention?

How about the pallet icons? Are the resource files generated at compiling the package, or need to be prepared before?
TBLCDDisplay also contains editors that need to be registered. Where is the right place to do so?

TBCName or TBGRAName one of these.

All lowercase.

The icons go in images and are built with lazres with the .bat file.

All the register go in each component file.
« Last Edit: June 23, 2024, 10:05:17 pm by lainz »

bobby100

  • Full Member
  • ***
  • Posts: 220
    • Malzilla
Re: BCLea Components (former BComponents)
« Reply #8 on: June 28, 2024, 08:09:37 pm »
So, the BComponents are now part of BGRA Controls under the name BCLea Components.
Gitlab repository of BComponents will not be updated anymore.

We can keep this thread here for the bug reports, suggestions etc.

lainz

  • Hero Member
  • *****
  • Posts: 4572
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BCLea Components (former BComponents)
« Reply #9 on: June 29, 2024, 03:06:17 am »
So, the BComponents are now part of BGRA Controls under the name BCLea Components.
Gitlab repository of BComponents will not be updated anymore.

We can keep this thread here for the bug reports, suggestions etc.

Many thanks for your nice components!

Please if you can, add them to the readme.md, so you have the credits as well.

Edit: and why BC"Lea" components? Is strange for me because people call me "Lea" because my name is Leandro.
« Last Edit: June 29, 2024, 03:13:01 am by lainz »

bobby100

  • Full Member
  • ***
  • Posts: 220
    • Malzilla
Re: BCLea Components (former BComponents)
« Reply #10 on: June 29, 2024, 07:18:24 am »
So, the BComponents are now part of BGRA Controls under the name BCLea Components.
Gitlab repository of BComponents will not be updated anymore.

We can keep this thread here for the bug reports, suggestions etc.

Many thanks for your nice components!

Please if you can, add them to the readme.md, so you have the credits as well.

Edit: and why BC"Lea" components? Is strange for me because people call me "Lea" because my name is Leandro.
I've asked my kids what name to give to the components, and after going through a couple of ideas, my daughter said: "why not my name, Lea?"
You share the same nickname with my daughter, Leonora.

lainz

  • Hero Member
  • *****
  • Posts: 4572
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BCLea Components (former BComponents)
« Reply #11 on: June 29, 2024, 11:35:10 am »
I see. Cool name  :)

 

TinyPortal © 2005-2018