Recent

Author Topic: BGRA Controls  (Read 142872 times)

lainz

  • Hero Member
  • *****
  • Posts: 3304
    • Lainz
Re: BGRA Controls v6.0.2
« Reply #360 on: December 13, 2018, 04:26:43 pm »
Hi, I tested with Lazarus RC 2 32 bit and it's working fine.

I'm using bgrabitmap development branch.

josh

  • Hero Member
  • *****
  • Posts: 754
Re: BGRA Controls v6.0.2
« Reply #361 on: December 13, 2018, 06:26:39 pm »
Hi

Yes confirmed RC2 is working, as is 1.8.5.

the issue is within trunk of both i386-carbon and x64-cocoa cross compiling to carbon.
Rev 59686 is working but latest trunk is not.

If the upcoming RC3 is based on latest trunk, then this will have the issue.
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

lainz

  • Hero Member
  • *****
  • Posts: 3304
    • Lainz
Re: BGRA Controls v6.0.2
« Reply #362 on: January 19, 2019, 06:22:17 pm »
Hi josh, how it's working now with RC3?

I'm out of ideas we have a lot of controls already:

- Button (a lot of them)
- CheckBox (MDButton)
- RadioButton (MDButton)
- Progress Bar (normal and radial)
- Image displaying and animation / gif
- SVG displaying
- Label
- Panel
- PaintBox
- ToolBar
- Numeric edit
- Knob
- Shape
- Clocks
- ListBox (themed only)

If you choose to install Custom Drawn as well there are
- Edit
- Many more

And some extras
- Virtual Keyboard / Virtual Numeric Keyboard
- BCButton theme manager
- Pascal Script utilities

Yet a full theme is missing, and I think it will be like that since is hard to make TMainMenu, ComboBox, Edit (that works smoothly, it already comes with Custom Drawn Package).

And now it works on Delphi as well.

What's next, I think we can move to web development with Pas2JS.

Release 6.0.3 with small fixes
https://github.com/bgrabitmap/bgracontrols/releases

* Added BorderSpacing and Constraints in some controls that had these properties missing.
* Fix for DropDown on Linux (BCButton)
* Removed unused units
« Last Edit: January 19, 2019, 06:31:49 pm by lainz »

lainz

  • Hero Member
  • *****
  • Posts: 3304
    • Lainz
Re: BGRA Controls v6.0.4
« Reply #363 on: February 09, 2019, 09:09:50 pm »
Hi, in dev branch I've added BGRA Themes (and deleted the old repository from github). Today I created BGRAThemeRadioButton.

Mocte

  • New Member
  • *
  • Posts: 21
Re: BGRA Controls v6.0.4
« Reply #364 on: February 11, 2019, 06:44:26 pm »
Great work Lainz, I don't use Lazarus as much as I wish but I like to follow the BGRA developments and is only getting better, keep up the good work  :)

lainz

  • Hero Member
  • *****
  • Posts: 3304
    • Lainz
Re: BGRA Controls v6.0.4
« Reply #365 on: February 26, 2019, 05:19:40 pm »
Thanks, yes I use Lazarus at work, but outside that I'm not using it too much too for personal projects, but I like to code with BGRABitmap is the only reason I have to keep this updated.

New release
https://github.com/bgrabitmap/bgracontrols/releases/tag/v6.1

Added BGRAThemes into the release with @circular fixes and bctools.pas fixes thanks to @Phoenix.

Edit: About Delphi Compatibility, the latest version tested with Delphi is the one located here https://forum.lazarus.freepascal.org/index.php/topic,24176.msg303533.html#msg303533, I'm not further adding to Delphi new components because I don't use it.
« Last Edit: February 26, 2019, 05:21:32 pm by Lainz »

lainz

  • Hero Member
  • *****
  • Posts: 3304
    • Lainz
Re: BGRA Controls v6.2.1
« Reply #366 on: May 04, 2019, 10:17:06 pm »
Hi, new release BGRA Controls v6.2.1

Now it has a new button control called TBCGradientButton, with this button you can create something like this:

Gif of the control
https://giphy.com/gifs/pascal-lazarus-bgrabitmap-Js2QZmHR0t9KZl04pu

And that's all, is a component made in 1 hour, is something like Windows 10 start menu buttons... I get inspired with those. You can set LockVertical to look the same as the start menu ones that only moves the gradient horizontally.

The button is only responsible to draw the gradient hover light and the border, when you click it dims the control (all these colors are customizable by object inspector, with alpha channel) the rest must be drawn by the user, in the demo I put a background color and a background image, but can be text or wathever you want!

Enjoy!

Dio Affriza

  • Jr. Member
  • **
  • Posts: 87
Re: BGRA Controls v6.2.1
« Reply #367 on: July 15, 2019, 05:07:32 am »
Btw, is there any chance for created TBCEdit or something like that in the future version? Hehe... It would be nice if we have that :D

circular

  • Hero Member
  • *****
  • Posts: 3048
    • Personal webpage
Re: BGRA Controls v6.2.1
« Reply #368 on: July 17, 2019, 10:32:17 pm »
Btw, is there any chance for created TBCEdit or something like that in the future version? Hehe... It would be nice if we have that :D
I think that would not be too much work use BGRATextBidi unit. Look for example at bgrabitmap/test/testbiditext2.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3304
    • Lainz
Re: BGRA Controls v6.2.1
« Reply #369 on: July 18, 2019, 12:53:02 am »
There is one in CustomDrawn package, I just did a theme with BGRABitmap units, maybe port that to entirely BGRA with no need of using custom drawn package?

circular

  • Hero Member
  • *****
  • Posts: 3048
    • Personal webpage
Re: BGRA Controls v6.2.1
« Reply #370 on: July 18, 2019, 02:03:47 pm »
Indeed, we could have a component independant from custom drawn.

In fact I was rather thinking about a multiline text editor, like TMemo. Using BGRATextBidi, you don't need to program the text layout, selection or caret position computation.

Though thinking about it, it may be a bit different from TEdit, in particular the horizontal scrolling when the text is bigger than the box.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3304
    • Lainz
Re: BGRA Controls
« Reply #371 on: August 07, 2019, 06:22:18 pm »
New release of BGRAControls v6.3:

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

- Added DiscardBitmap(ARect) in BGRAVirtualScreen.
- Added BCComboBox.
- Added OnChange event for BGRAThemeRadioButton.
- Added negative values in BCTrackBarUpDown.
« Last Edit: August 07, 2019, 06:24:15 pm by lainz »

circular

  • Hero Member
  • *****
  • Posts: 3048
    • Personal webpage
Re: BGRA Controls
« Reply #372 on: August 07, 2019, 07:08:43 pm »
Cool that will make LazPaint beautiful  :)
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3304
    • Lainz
Re: BGRA Controls
« Reply #373 on: August 08, 2019, 06:41:44 pm »
Cool that will make LazPaint beautiful  :)

For sure =)

New release 6.3.1

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

BCButton
- Add text padding
- Default property values can't be used because of custom style

lainz

  • Hero Member
  • *****
  • Posts: 3304
    • Lainz
Re: BGRA Controls
« Reply #374 on: August 14, 2019, 05:00:11 pm »
New release 6.4

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

- Style editor for combobox (double-click on control in designer to open)
- Glyph alignment for BCButton
- Added BGRAThemeCheckBox
- Fix MouseDown for RadioButton
- AutoSize of BCButton