Recent

Author Topic: BGRA Controls  (Read 282543 times)

CM630

  • Hero Member
  • *****
  • Posts: 1630
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: BGRA-Controls
« Reply #135 on: June 05, 2015, 08:40:16 pm »
Done :)

It was some unit left that was using uE, I think that unit was contributed some time ago by an user.
This user was me (my user name is Paskal). You can return my contributions back, they should not have problems with the original UEControls.
« Last Edit: June 06, 2015, 06:54:16 pm by CM630 »
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #136 on: June 05, 2015, 09:44:00 pm »
Done :)

It was some unit left that was using uE, I think that unit was contributed some time ago by an user.
This user was me. You can return my contributions back, they should not have problems with the original UEControls.

Ok. The main problem is if we does not include the dependencies it will not compile for users that does not have UEControls package. Because that I removed them.

The solution is you contact uEcontrols project leader and send him the modifications you have done.

CM630

  • Hero Member
  • *****
  • Posts: 1630
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: BGRA-Controls
« Reply #137 on: June 05, 2015, 09:54:13 pm »
In fact, he refused to accept cooperation, that is why I forked some of the components.
I suppose that uerotimage.pas rotate is the only dependency?  Maybe it can be renamed and added to BGRA- Controls, so my components will work again.
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #138 on: June 05, 2015, 11:53:19 pm »
In fact, he refused to accept cooperation, that is why I forked some of the components.
I suppose that uerotimage.pas rotate is the only dependency?  Maybe it can be renamed and added to BGRA- Controls, so my components will work again.

I think you can do a fork and upload it to sourceforge and you directly mantain it.

Sorry i do not want problems with they.

Even if the License allow us to do the thing you say.

CM630

  • Hero Member
  • *****
  • Posts: 1630
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: BGRA-Controls
« Reply #139 on: June 06, 2015, 07:42:39 am »
Ok.
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

circular

  • Hero Member
  • *****
  • Posts: 4467
    • Personal webpage
Re: BGRA-Controls
« Reply #140 on: June 06, 2015, 12:22:58 pm »
@CM630: When you proposed the changes, what answer did the maintainer of ueControls give to you? Was there a particular reason that would prevent them from applying those changes?
Conscience is the debugger of the mind

CM630

  • Hero Member
  • *****
  • Posts: 1630
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: BGRA-Controls
« Reply #141 on: June 06, 2015, 06:56:31 pm »
I suppose there was a particular reason, but he did not bother to mention it.
Anyway, I read than explicit permision by the developer of UEControls is needed to use it in commersial apps. I suppose that contradicts with the general license of BGRA- Controls.
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #142 on: June 12, 2015, 05:39:55 am »
Really? I misread the license, MPL

Wikipedia quote (yes, is not the license text):

 In the absence of patents, MPL-licensed code can be freely used, altered, and redistributed. Versions with patented code can still be used, transferred, and even sold, but cannot be altered without special permission.

Also they are using bgrabitmap and maybe lcl units so it gets complex.

No one license debate ends fine in this forum, because that I just removed the files as asked by developers of uecontrols.

M.A.R.C.

  • Jr. Member
  • **
  • Posts: 68
Re: BGRA-Controls
« Reply #143 on: June 24, 2015, 07:58:51 pm »
Apologize for my delayed response.

First, thank you for remove uE controls.

We need to admin our package because it is used for our students in ours projects and also some of them like to use BGRAcontrols.

We recently change the way that the controls load their images, that is the reason of have the message "The property 'Picture' is deprecated, use Image". Before we use the property "Picture" for load the images, now the controls use the property "Image".

@CM630, some of the changes that you proposed breaks the functionality in our designs, is for that, we say that you could modify them to best suit your application.

Best regards.

uE Group.

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #144 on: June 24, 2015, 09:08:25 pm »
Apologize for my delayed response.

First, thank you for remove uE controls.

We need to admin our package because it is used for our students in ours projects and also some of them like to use BGRAcontrols.
Best regards.

uE Group.

Alright  8)

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #145 on: June 29, 2015, 06:59:44 pm »
Hi,

In SVN of BGRA-Controls:
- I've added LoadFromBitmapResource for BCImageButton. You can load the bitmap from a resource now.

You can add the resources to your executable in the Project Options of the Lazarus IDE.
Code: [Select]
Project > Project Options > Resources > Add
Then, load the bitmap like this:
Code: [Select]
uses
... LCLType;

BCImageButton1.LoadFromBitmapResource('BITMAP1', RT_RCDATA);

Finally, this is better than storing in a TBitmap like in the older (really older) TBGRAImageButton, because the bitmap is stored in the original format, so size not increase, for example when you store a png image you can save a lot of space.

Also you can reuse the same resource and load it for all the BCImageButtons you want, saving more space.

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #146 on: July 09, 2015, 05:50:17 pm »
Hi,

BGRA-Controls latest repository SVN mirror is now on GitHub
https://github.com/bgrabitmap/bgracontrols/

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #147 on: April 11, 2016, 04:35:41 pm »
Hi, I've added on SVN the BCButtonFocus
- Is a button derived of CustomControl and has everything the same as BCButton plus it can handle focus (you can click it and give it focus, and do onclick pressing spacebar or return).

ToDo:
- Enable TabStop (pressing tab key focus the button). Done.
- Add focus styles, to see when the button is focused.
« Last Edit: April 11, 2016, 04:54:03 pm by lainz »

circular

  • Hero Member
  • *****
  • Posts: 4467
    • Personal webpage
Re: BGRA-Controls
« Reply #148 on: April 11, 2016, 07:26:35 pm »
Cool.  :)

How does this button handle transparency?
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #149 on: April 11, 2016, 08:56:48 pm »
Cool.  :)

How does this button handle transparency?

It uses the Color property as background, so there is no background transparency. But it can be still used with no major problems if you set the color of the form / panel you're using.

 

TinyPortal © 2005-2018