Hi, sorry I need to revert a change you did to TBCButton, seems that only works in newest BGRABitmap, that can't compile in lazarus trunk... So until fixed I reverted the usage of TBitmap instead of TBGRABitmap for TBCButton. Later we can bring it back to use the new feature.
In Delphi there is a way to make controls based on putting controls on a WYSWYG way, I wish to implement that for BGRAControls.
For example, drag a background, drag text, drag an icon and you have a brand new control made by you, that accepts standard events. These items are like plugins you put in a base control.
Then we can get rid of the complexity of making alignments, since we can use LCL that's already good doing that.
For example:
Base Control: TCustomControl descendant
- TImage
- TLabel
Then you simply align the image where you want (even with fixed pixel positions if you want it) and align the label (top, left, right, etc.)
And that's all, you assign by code the click event, that can be one for each element or one for all. There is the concept of HitTest or somewhat in these lines, that means you clic the icon but it passes through it and instead you clic the whole thing.
Is a bit harder to make, but once it's done, we have our own multi component, and forget about aligning and that hard stuff =)
I did something like that for this application:
https://github.com/Arandusoft/fpcpaymowidgetBut I coded the layout by hand, the idea is to have an own designer to implement the controls.
And new release:
BGRAControls 4.6 * BGRAVirtualScreen: Redraw when caption changes, partial redraw
* BGRAVirtualScreen: Fix BevelOuter
* Fixing icon example
* ColorSpeedButton: added TextAutoSize
I've released that soon because I need the new color speed button feature to work with it, in multiple PC's so I'm using OPM to distribute it. Sorry if it's too early to release.