Recent

Author Topic: BGRA Controls  (Read 145715 times)

circular

  • Hero Member
  • *****
  • Posts: 3104
    • Personal webpage
Re: BGRA-Controls
« Reply #120 on: May 04, 2015, 01:30:47 pm »
Hi! Here is a patch with:
- InnerMargin property for label and button (so that it is possible to make it look as before by using value 0.5 for InnerMargin)
- for sprite animation, when loading a gif, to use the speed of the gif file
- for sprite animation, fixed some resource variable
Conscience is the debugger of the mind

Mukatai

  • New Member
  • *
  • Posts: 28
Re: BGRA-Controls
« Reply #121 on: May 04, 2015, 02:25:30 pm »
I cant remember. If it is not in the settings you cant.

Edit: if you know how you can try to add that feature. Or you can use the event OnAfterRenderBCButton that allows put your own drawing code to the already rendered button-
Hi,

Thanks, work perfectly with OnAfterRenderBCButton !

@+

lainz

  • Hero Member
  • *****
  • Posts: 3460
    • Lainz
Re: BGRA-Controls
« Reply #122 on: May 04, 2015, 03:28:10 pm »
Hi! Here is a patch with:
- InnerMargin property for label and button (so that it is possible to make it look as before by using value 0.5 for InnerMargin)
- for sprite animation, when loading a gif, to use the speed of the gif file
- for sprite animation, fixed some resource variable

I was trying to implement the gif thing a lot of time ago, finally is here!

M.A.R.C.

  • Jr. Member
  • **
  • Posts: 69
Re: BGRA-Controls
« Reply #123 on: May 23, 2015, 10:21:52 am »
r9
Added uEcontrols
- From http://sourceforge.net/projects/uecontrols/ version 5.14. Author Miguel Alberto Risco Castillo.
- Changes: changed icon folder and components tab in register procedure, removed package units to add all the units in the bgracontrols package.

Please remove uEControls and related units and files (ue*.pas) from BGRAControls, it conflicts with uEControls installations.

lainz

  • Hero Member
  • *****
  • Posts: 3460
    • Lainz
Re: BGRA-Controls
« Reply #124 on: May 26, 2015, 02:23:25 pm »
r9
Added uEcontrols
- From http://sourceforge.net/projects/uecontrols/ version 5.14. Author Miguel Alberto Risco Castillo.
- Changes: changed icon folder and components tab in register procedure, removed package units to add all the units in the bgracontrols package.

Please remove uEControls and related units and files (ue*.pas) from BGRAControls, it conflicts with uEControls installations.

Really? Does lazarus has this problem?

It happens when you try to rebuild lazarus or only if you use both packages in a single project?

wp

  • Hero Member
  • *****
  • Posts: 6704
Re: BGRA-Controls
« Reply #125 on: May 26, 2015, 03:18:08 pm »
You cannot have two packages with equally named components in Lazarus (I had a similar issue with TAChart and a demo version of TeeChart for Lazarus).

mrisco wants to administrate his uecontrols by himself (http://forum.lazarus.freepascal.org/index.php/topic,13592.msg178530.html#msg178530). So, you'll have to remove uecontrols from BGRAControls. Anything else would be extremely unfair to the author of uecontrols.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

circular

  • Hero Member
  • *****
  • Posts: 3104
    • Personal webpage
Re: BGRA-Controls
« Reply #126 on: May 26, 2015, 06:16:55 pm »
If the author would like to take control over its controls, of course that is fair. I suppose also it was a little help to promote the controls through BGRAControls. I suppose that was the intention in the first place.

One need also to take into consideration the users of BGRAControls. What would be the transition for a project using those controls in BGRAControls package? After the controls are removed, is it as simple adding in the projects the dependency to the specific package for uecontrols? As they have the same name, I suppose there is no need to modify the LFM files.

007, what would prevent you from removing the controls? Are there modifications that have been done on those controls? In that case, you could suggest them as patches to ueControls to mrisco.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3460
    • Lainz
Re: BGRA-Controls
« Reply #127 on: May 26, 2015, 09:25:16 pm »
Ah ok. I will remove them. There is no problem. Of course if the author does not want it included it's ok.

BTW I don't remember if there is some bugfix or not, I think uE is unchanged. I think I've fixed the clock components, but those are not from uE.

You cannot have two packages with equally named components in Lazarus (I had a similar issue with TAChart and a demo version of TeeChart for Lazarus).

Ok, this is the answer to my questions, BTW is weird :)
So component names are "Global" maybe I must say that? Not "BGRAControls.SomeComponent"

If the author would like to take control over its controls, of course that is fair. I suppose also it was a little help to promote the controls through BGRAControls. I suppose that was the intention in the first place.

One need also to take into consideration the users of BGRAControls. What would be the transition for a project using those controls in BGRAControls package? After the controls are removed, is it as simple adding in the projects the dependency to the specific package for uecontrols? As they have the same name, I suppose there is no need to modify the LFM files.

007, what would prevent you from removing the controls? Are there modifications that have been done on those controls? In that case, you could suggest them as patches to ueControls to mrisco.

No problem, as I said I think there is no fix on these. I'm removing them now.

circular

  • Hero Member
  • *****
  • Posts: 3104
    • Personal webpage
Re: BGRA-Controls
« Reply #128 on: May 26, 2015, 09:36:14 pm »
Ok so the transition will probably be easy for users.

Quote
So component names are "Global" maybe I must say that? Not "BGRAControls.SomeComponent"
I am not sure. Maybe in Lazarus code there isn't the unit name. Also LFM files that describe forms do not mention unit names, so there is no way to know in which unit to look for them.

It is a bit a result of the principle of Pascal that has simple unit names, and not composed ones like in .NET, like System.Windows.Forms. Well except the .NET version of Pascal of course.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3460
    • Lainz
Re: BGRA-Controls
« Reply #129 on: May 26, 2015, 09:41:11 pm »
Ok so the transition will probably be easy for users.

Quote
So component names are "Global" maybe I must say that? Not "BGRAControls.SomeComponent"
I am not sure. Maybe in Lazarus code there isn't the unit name. Also LFM files that describe forms do not mention unit names, so there is no way to know in which unit to look for them.

It is a bit a result of the principle of Pascal that has simple unit names, and not composed ones like in .NET, like System.Windows.Forms. Well except the .NET version of Pascal of course.

Oh really there is a .NET version of Pascal? :)

Yes I'm using C# and VS2013 with .NET right now, and well is organized in that way.

So, is not possible. All names must be unique.

Just updated the package. You can try the new package? For some reason I opened Lazarus and everything is broken! I cant even run it, all packages are with the red icon in my components explorer, something weird, I'm downloading lazarus again..

lainz

  • Hero Member
  • *****
  • Posts: 3460
    • Lainz
Re: BGRA-Controls
« Reply #130 on: May 26, 2015, 10:17:25 pm »
Done :)

It was some unit left that was using uE, I think that unit was contributed some time ago by an user. So it maybe want to be added in uE controls.

BGRARKnob.
http://forum.lazarus.freepascal.org/index.php/topic,24176.msg157006.html#msg157006

This is the only one that was user contribution that can be added to uEcontrols. mrisco please check it.

For bgracontrols users:
- If you want to use these components please download uEcontrols.
- Or Download bgracontrols-3.6-2015-05-02.zip (2.4 MB), is the last version including these components.
« Last Edit: May 26, 2015, 10:20:25 pm by 007 »

josh

  • Hero Member
  • *****
  • Posts: 757
Re: BGRA-Controls
« Reply #131 on: May 31, 2015, 11:01:57 pm »
Hi
I am having problem downloading from snapshot and svn

snapshot just goes on forever
svn error not found

Is it broken?
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.

josh

  • Hero Member
  • *****
  • Posts: 757
Re: BGRA-Controls
« Reply #132 on: June 01, 2015, 07:08:09 pm »
Hi

Snapshot started working about 1 hr ago.

I have removed, BGRAcontrols 3.6 installled latest brabitmap, installed new uecontrols, then the new bgracontrols.

Now i cannot open my projects, one of the smaller ones I get property picture deprecated use bitmap.

So now removed the new uecontrols and bgracontrols, and have gone back to bgracontrols 3.6

Is there a guide/instruction how to seperate the uecontrols and bgracontrols and how to modify projects that used the previous bundle? As am unable to get the form to display. ?


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: 3460
    • Lainz
Re: BGRA-Controls
« Reply #133 on: June 03, 2015, 06:36:47 am »
Hi josh,

We can do nothing :( Please ask in the uEControls thread
http://forum.lazarus.freepascal.org/index.php/topic,13592.msg179239/topicseen.html#new

Trunk is working here.

circular

  • Hero Member
  • *****
  • Posts: 3104
    • Personal webpage
Re: BGRA-Controls
« Reply #134 on: June 03, 2015, 11:38:33 am »
I don't know if this would help you josh but you can try the following.

While having loaded the project with BGRAControls version 3.6, add ueControls in the project inspector and save the project. Do this for all your projects.

Then close any opened package and open the new version of BGRAControls and install it. Recompile Lazarus and when you restart, your projects will be opened using controls from ueControls.

If this does not work, I suppose there is some difference in the controls.

Quote
property picture deprecated use bitmap.
Maybe can you expand on that?
Conscience is the debugger of the mind