Recent

Author Topic: [CLOSED] BGRAControls  (Read 548933 times)

Dibo

  • Hero Member
  • *****
  • Posts: 1048
[CLOSED] BGRAControls
« on: March 14, 2011, 12:50:45 am »
Hi,

All details for this package are now available on wiki page created by lainz. Big thanks.
http://wiki.lazarus.freepascal.org/BGRAControls

Regards
« Last Edit: April 10, 2014, 10:32:41 am by Dibo »

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2582
Re: BGRAImageList - solution for GTK alpha
« Reply #1 on: March 14, 2011, 10:58:15 am »

License: I know nothing about licensing. I added GNU from Lazarus wizard. Just download and do what you want. It is free


A to be LCL compatible, use at least LGPL+linking exception (the same as the LCL)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: BGRAImageList - solution for GTK alpha
« Reply #2 on: March 14, 2011, 11:39:22 am »
You can find it in the bgrabitmap directory. There are 3 files :

- one that say that this is under LGPL with linked exception
- the LGPL
- the link exception
Conscience is the debugger of the mind

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: BGRAImageList - solution for GTK alpha
« Reply #3 on: March 14, 2011, 05:32:33 pm »
New version 1.0.1.0 (link in first post)

@circular. If you don't mind, I copied this license files and change description, contact etc. In top of my files I added LGPL license from lazarus wizard "Source -> Insert General -> Modified LGPL notice". Now everything is ok?

My patch to TImageList has been accepted, so lazarus revision >=29834 is required.

Regards

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: BGRAImageList - solution for GTK alpha
« Reply #4 on: March 14, 2011, 08:14:49 pm »
New version 1.0.2.0
Small optimization. This is final version. I think this component has nothing more to do.

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: BGRAImageList - solution for GTK alpha
« Reply #5 on: March 14, 2011, 08:48:07 pm »
@circular. If you don't mind, I copied this license files and change description, contact etc. In top of my files I added LGPL license from lazarus wizard "Source -> Insert General -> Modified LGPL notice". Now everything is ok?
I suppose.
Conscience is the debugger of the mind

joseme

  • Full Member
  • ***
  • Posts: 128
    • Logosoft sistemas
Re: BGRAImageList - solution for GTK alpha
« Reply #6 on: March 17, 2011, 02:04:19 pm »
Dibo, thanks for your work. Day after day I see Lazarus grow with the effort of people like you.
un aporte a la comunidad:
http://pascalylazarus.blogspot.com/

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: BGRAImageList - solution for GTK alpha
« Reply #7 on: March 17, 2011, 05:52:03 pm »
Thanks

Gintas

  • Jr. Member
  • **
  • Posts: 71
    • Developer's Diary
Re: BGRAImageList - solution for GTK alpha
« Reply #8 on: March 18, 2011, 03:41:06 pm »
Now you need to make same with TSpeedButton :)

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: BGRAImageList - solution for GTK alpha
« Reply #9 on: March 19, 2011, 01:56:37 pm »
Yes. I think about this

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: BGRAImageList - solution for GTK alpha
« Reply #10 on: March 21, 2011, 06:17:43 pm »
New version 1.0.3.0
BGRABitmap updated to 2.6 version

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: BGRAControls - solution for GTK alpha
« Reply #11 on: April 07, 2011, 02:40:43 pm »
New version 1.0.5.0

Changes:
  • I created new component TBGRASpeedButton which inherit from TSpeedButton and draw glyph using BGRABitmap (see attached screens in first post), so I change package name from BGRAImageList to BGRAControls. All components are available now in own components palette "BGRA Controls"
  • Package doesn't include BGRABitmap source anymore. BGRABitmap from version 2.4 is published as independent package, so you need install it at first. BGRABitmap package is added as required package of BGRAControls package
  • On windows, controls don't use Opaque mode (I notify some random artifacts)
  • You can install BGRAControls package with -dGTK_ONLY switch in compiler options. With this switch it use default lazarus drawing for other interfaces than GTK

Link and details in first post.

Regards

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: BGRAControls - solution for GTK alpha
« Reply #12 on: April 07, 2011, 07:40:42 pm »
I don't understand why you would use Opaque mode. It's designed to work only with opaque images. In this case, bitmaps have transparent parts, so Opaque should not be used.  %)
Conscience is the debugger of the mind

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: BGRAControls - solution for GTK alpha
« Reply #13 on: April 07, 2011, 08:23:58 pm »
I don't know why :D . This param is default True and work fine on GTK so I thought that it is recommended
« Last Edit: April 07, 2011, 08:27:27 pm by Dibo »

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: BGRAControls - solution for GTK alpha
« Reply #14 on: April 07, 2011, 11:21:21 pm »
Well, I did not expect it to work. It seems that Gtk handles transparent drawing. So in fact, BGRABitmap could be modified so that it would do this when parameter is at False, and it should be modified so that with parameter True, it would fill the background as well.

In the meantime, it is surely faster with True for now. We need to modifiy both at the same time. In BGRABitmap I should do the change and in your library, you should put False as a parameter.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018