Recent

Author Topic: BGRA Controls  (Read 221605 times)

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v5.0.2
« Reply #345 on: October 23, 2018, 08:33:51 pm »
Hi, things get lost in time. Is good that you can remember that "style". But I also don't have it anymore.

It's alright, i found it anyway, it was in the BGRAControls 1.4.0.1 Release, (the last version which includes it) found in the old BGRAControls Sourceforge project (REALLY OLD, 6 years ago), and doesn't work anymore, it needs some good porting work since BGRAControls changed a lot.

It should be easy to port, just are changes in property names, nothing more.

New BGRAControls v5.0.2

Download:
https://github.com/bgrabitmap/bgracontrols/releases

* less warnings
* compilation fix for old lazarus (requires latest BGRABitmap)
* Missing Math unit in colorspeedbutton.pas

This last fix allows to compile it in trunk-trunk (tested myself on Windows 10 and Mac OS 10.13)

The latest commits on GitHub of BGRABitmap allows to install it on Linux properly.

If you have issues installing BGRABitmap or BGRAControls, please try the following:
- remove bgracontrols package from lazarus (uninstall)
- remove bgrabitmap and bgracontrols folders
- download a fresh copy
- try installing again

We don't know why it fails sometimes, lazarus evolves fast and we make changes when we can, to keep it running on trunk.

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v5.0.3
« Reply #346 on: November 22, 2018, 11:22:03 pm »
BGRAControls v5.0.3
https://github.com/bgrabitmap/bgracontrols/releases/tag/v5.0.3

* Move all buttons to BGRA Button Controls tab.
* Default theme for BCImageButton. Default image for BCSVGButton. Default theme for ColorSpeedButton.
* Fixing timers in BCImageButton and BGRASpriteAnimation.

The buttons now are on his own tab, because we have a lot of them.
Default themes for these buttons.
And finally, timers are destroyed well now, and not used when there is no animation in these controls.

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: BGRA Controls v5.0.3
« Reply #347 on: November 22, 2018, 11:59:02 pm »
Thanks. That's easier to browse with a separate tab for buttons.  :)
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v5.0.3
« Reply #348 on: November 23, 2018, 12:31:31 am »
 :) Yes is good.

The timer thing cost me about an hour of debugging because that bug breaks the Lazarus Ide.  %)

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: BGRA Controls v5.0.3
« Reply #349 on: November 23, 2018, 01:15:14 am »
That's kind of strange. Congrats for solving the bug  :)
Conscience is the debugger of the mind

BSaidus

  • Hero Member
  • *****
  • Posts: 538
  • lazarus 1.8.4 Win8.1 / cross FreeBSD
Re: BGRA Controls v5.0.3
« Reply #350 on: November 24, 2018, 10:38:33 pm »
BCMaterialDesignButton !!

Hi, the BCMaterialDesignButton I think it bugs, It do not change colors even if NormalColor property set.
It seems that ShadowColor only Color's the button.
See screenshot.

Thanks
lazarus 1.8.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v5.0.3
« Reply #351 on: November 25, 2018, 01:44:22 am »
Hi, is a bug but not in the control, the solution is that you need to recompile BGRABitmap and BGRAControls with clean option.

BSaidus

  • Hero Member
  • *****
  • Posts: 538
  • lazarus 1.8.4 Win8.1 / cross FreeBSD
Re: BGRA Controls v5.0.3
« Reply #352 on: November 25, 2018, 06:17:32 pm »
Hi, is a bug but not in the control, the solution is that you need to recompile BGRABitmap and BGRAControls with clean option.
I even cleaned all lazarus and all lib\*.o , lib\*.ppu and recompiled lazarus, but still buggy.
lazarus 1.8.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v5.0.3
« Reply #353 on: November 25, 2018, 06:32:03 pm »
Hi, what version of BGRABitmap do you have? Edit: and also lazarus version, fpc version and bitness, bgracontrols version, maybe it's a buggy combination for that control.

Working fine here.
« Last Edit: November 25, 2018, 06:42:07 pm by lainz »

BSaidus

  • Hero Member
  • *****
  • Posts: 538
  • lazarus 1.8.4 Win8.1 / cross FreeBSD
Re: BGRA Controls v5.0.3
« Reply #354 on: November 25, 2018, 06:56:13 pm »
Ok thinks,
I'v downloaded the master branch on github.
It works now.

Thunk you.
lazarus 1.8.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v5.0.3
« Reply #355 on: November 25, 2018, 07:06:07 pm »
Great!, thanks for sharing the solution.

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v6
« Reply #356 on: December 01, 2018, 01:45:37 am »
BGRAControls v6

* Added Delphi Compatibility (from v5.0.1 copy thanks to @edivando-fpc)
* Added again changes from v5.0.1 to v5.0.3
* Added AlphaTest and AlphaTestValue in BCImageButton
* Added LoadFromBitmapResource in BGRASpriteAnimation

Note, delphi compatibility requires a separate download of BGRABitmap
https://github.com/edivando-fpc/BGRABitmap

The BGRAControls version in edivando's repo is not the same as the one in our repo, our repo contains more fixes currently. I asked edivando if there are more changes to create a fork so we can have updated versions for delphi and lazarus.
« Last Edit: December 01, 2018, 02:06:43 am by lainz »

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v6.0.2
« Reply #357 on: December 06, 2018, 11:43:31 pm »
New BGRAControls v6.0.2
https://github.com/bgrabitmap/bgracontrols/releases

* Added BCImageButton toggle button test.
* Fix compiling in FPC 3.0.4.

Phoenix

  • Jr. Member
  • **
  • Posts: 87
Re: BGRA Controls v6.0.2
« Reply #358 on: December 09, 2018, 05:06:10 pm »
Thanks   :D!!

Josh

  • Hero Member
  • *****
  • Posts: 1270
Re: BGRA Controls v6.0.2
« Reply #359 on: December 11, 2018, 01:32:37 pm »
Hi Lainz,

posted same on bgrabitmap topic, but added here also incase its bgracontrols.

Something has happened in either bgrabitmap,bgracontrols, or latest trunk of carbon widgetset.

If I place a TBGRAShape ona  form, it is not drawn on ide or when compiled, it has no corners, border coloring does not work, and background coloring does not work.
Doing same on windows and cocoa on mac is working.

I am not sure if its latest trunk, bgrabitmap or bgracontrols.

Apologies for being vague.

Also it does the same with BCRadialProgressBar.

i386-darwin-carbon  fpc 3.3.1  svn 59789.

Update---
I have an older laz installation rev 59686; which works fine on carbon.
So I think its a Laz Issue.


Also tried cross compiling from cocoa 64 to carbon 32 and get the same problem
« Last Edit: December 11, 2018, 01:57:00 pm by josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

 

TinyPortal © 2005-2018