Recent

Author Topic: BGRA Controls  (Read 221606 times)

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v4.5.1
« Reply #315 on: February 09, 2018, 12:21:10 pm »
I seemed to have problems on the latest install as I was adding packages for my development on the version 64-bit version but not the 32-bit version. I have a 32-bit and a 64-bit Lazarus install on my Win10 64-bit machine.  Download was from source forge. I tried a download from a mirror site and no problem on the 64-bit install and adding packages on both 64 and 32 some BRGA controls in the mix. Wondering if there is some variance on the installers from mirror sites and the source forge site?   8)

BGRAControls is now only on GitHub. Try using Online Package Manager to get packages from now.

@lainz
I updated BGRAControls.

Thanks  :)

Josh

  • Hero Member
  • *****
  • Posts: 1270
Re: BGRA Controls v4.5.1
« Reply #316 on: February 09, 2018, 12:32:52 pm »
@getmem
Just an idea, that would make it far more useful to me , would be if I set the download folder to be my central component folder, then when components are downloaded they are stored in a folder that also contains there version number, ie BGRABITMAP_8_5_2 etc, that way when I update a component in one of my lazarus installation, it will not effect the other installations; until I am ready to upgrade those as well.  As I have some old lazarus installations that are still in use but not all the updated component/libraries work with.


Ooops posted in wrong place , so I have copied the post to Online Package Manager Topic.
« Last Edit: February 09, 2018, 12:34:29 pm by josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

niotronic

  • New Member
  • *
  • Posts: 13
Re: BGRA Controls v4.5
« Reply #317 on: March 08, 2018, 02:37:10 pm »
Hi,

I just came across the same problem when trying to install BGRAControls 4.5.1 with Lazarus 1.9 and FPC3.1.1 on an Odroid C2.

bcimagebutton.pas(48,32) Fatal: Cannot find BGRASliceScaling used by BCImageButton, incompatible ppu=C:\Components\bgrabitmap-9.6.1\bgrabitmap\lib\i386-win32\3.1.1\bgraslicescaling.ppu, package BGRABitmapPack

I already tried to completely remove and reinstall it always ending up with error above at the compile step. On Lazarus 1.7 with FPC3.0 this was compiling and installing fine...
Anyone having any more ideas how to install it properly ?

Thanks in advance!


Hi Lainz.

Just done another fresh install of Trunk on Windows SVN57273 and getting a probloem trying to install latest bgracontrols.

Downloaded and installed bgrabitmap 9.6.1 all ok, and appear in list of packages.
Downloaded bgracontrols 4.5 and when I try to install package I get.
Code: [Select]
bcimagebutton.pas(48,32) Fatal: Cannot find BGRASliceScaling used by BCImageButton, incompatible ppu=C:\Components\bgrabitmap-9.6.1\bgrabitmap\lib\i386-win32\3.1.1\bgraslicescaling.ppu, package BGRABitmapPack

Has something changed with the installation ?

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v4.5.1
« Reply #318 on: March 08, 2018, 03:21:23 pm »
BGRASliceScaling is part of BGRABitmap. So you have a problem with BGRABitmap.

niotronic

  • New Member
  • *
  • Posts: 13
Re: BGRA Controls v4.5.1
« Reply #319 on: March 08, 2018, 05:24:30 pm »
This problem occurs when I'm trying to install the package BGRAControls 4.5.1 -  I tried installing using the online package manager, as well as a manual download and manually opening the package file. It always stops at the compile state with above message.
But you're right - it happens when BRGAbitmapPack is processed by the compiler...
« Last Edit: March 08, 2018, 06:03:25 pm by niotronic »

Josh

  • Hero Member
  • *****
  • Posts: 1270
Re: BGRA Controls v4.5.1
« Reply #320 on: March 21, 2018, 11:15:20 am »
Hi
Using the TFXMaterialButton control,

how can I disable the Animation. If I have multiple Buttons and then click these rapidly, my cpu uage goes from 0% to 21%

would it be possible to add some properties
down (true/false),
NomalColor,HoverColor,ClickColor,DownColor (TMaterialColors)
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v4.5.1
« Reply #321 on: March 21, 2018, 01:11:26 pm »
Hi
Using the TFXMaterialButton control,

how can I disable the Animation. If I have multiple Buttons and then click these rapidly, my cpu uage goes from 0% to 21%

would it be possible to add some properties
down (true/false),
NomalColor,HoverColor,ClickColor,DownColor (TMaterialColors)

I know. But I know also if it's not for a game it will not make sense. No one clicks all buttons rapidly in a GUI application.

The material works only with an animation, for that will be needed another button control that does not use a Timer.

You can try changing it. Actually is not hard because there is a lot of sources available (BGRAControls for example). Or make your own.

If you want, we can add it to the package when ready, but only as a new control.

I want to say I started making controls when I have no idea about OOP, and I was a newby, so it's possible for anyone.

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v4.5.1
« Reply #322 on: April 05, 2018, 01:18:36 am »
Hi
Using the TFXMaterialButton control,

how can I disable the Animation. If I have multiple Buttons and then click these rapidly, my cpu uage goes from 0% to 21%

would it be possible to add some properties
down (true/false),
NomalColor,HoverColor,ClickColor,DownColor (TMaterialColors)

Here you go, is not finished but it does not have animations (yet) so you can copy this exact revision with no animations:
https://github.com/bgrabitmap/materialdesign/blob/8af3937990fbc3d2dece2df66077c92fd5d253d3/mdbutton.pas

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v4.5.1
« Reply #323 on: April 06, 2018, 03:27:17 am »
Hi Josh, I was very bussy with job to make new controls, but this week I found some time.

I make a new package
https://github.com/bgrabitmap/materialdesign

This has currently an (unfinished) MaterialDesignButton (MDButton).

I've added an option so this can animate only a button at a time, to prevent slowness.

Code: Pascal  [Select][+][-]
  1. // Set this to animate only a MDBUTTON at a time
  2. {$DEFINE MDBUTTON_ANIMATEONLYONE}

This button currently is something like this:
https://material.angular.io/components/button/overview

"Basic Buttons", so normal buttons with no shadow.

It runs a bit faster, not too much. I've tested it, and runs fast a half of the screen at 1920x1080. When fullscreen and full size it runs slow, of course since is not hardware accelerated.

I want to make this work better. Currently I've added the options you need StyleNormal, StyleHover, StyleActive (MouseDown) and StyleDisabled.. You can set FontColor and Color for each state.

You can now disable animations if you want, by default are disabled.

Please, you can test it?

Regards.

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v4.5
« Reply #324 on: May 15, 2018, 10:48:26 pm »
Hi Lainz,

Thanks for getting Back to me, not the answer I was hoping for.

I will have to experiment with other Graphics Libraries to see if they display unicode text correctly with installed fonts, and possibly overtime refrain from using bgrabitmap and bgracontrols.

A shame as its a very good library.

Hi, @circular solved it in dev-bgrabitmap branch today.
https://github.com/bgrabitmap/bgrabitmap/commits/dev-bgrabitmap

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Conscience is the debugger of the mind

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: BGRA Controls v4.5.1
« Reply #326 on: May 23, 2018, 12:36:21 pm »
Unit BGRAVirtualScreen.pas has a little bug.
TBGRAVirtualScreen has a hidden border of width 1 due to the BevelOuter of the inherited TCustomPanel set to bvRaised.
You can simply fix it by adding:
Code: Pascal  [Select][+][-]
  1.   inherited BevelOuter := bvNone;
after
Code: Pascal  [Select][+][-]
  1.   inherited Create(TheOwner);
in TCustomBGRAVirtualScreen.Create.

Maybe it's even better to inherit TCustomBGRAVirtualScreen from TCustomControl instead of TCustomPanel.
This way you do not have to redefine private properties.

laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v4.5.1
« Reply #327 on: May 23, 2018, 04:28:06 pm »
Hi, I will fix that. Thanks for reporting.

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: BGRA Controls v4.5.1
« Reply #328 on: May 24, 2018, 03:33:45 am »
@Pascal, Fixed in dev-bgracontrols branch.

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: BGRA Controls v4.5.1
« Reply #329 on: June 03, 2018, 09:42:09 pm »
Here I made some screenshots on Linux (using dev branch of BGRABitmap, that I will release today when we fix the little bugs).

Font is approximately the same size. Would be great to compare with Windows as well.
« Last Edit: June 03, 2018, 09:56:03 pm by circular »
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018