Recent

Author Topic: BGRA Controls  (Read 200952 times)

Josh

  • Hero Member
  • *****
  • Posts: 939
Re: BGRA Controls
« Reply #465 on: May 26, 2022, 09:28:29 pm »
Hi

I have ben developing an Expanding Button control v0.1.18 Alpha, based on BCButton, It is in Alpha stage, so hopefully some people can test it out and report back any issues or improvement suggestion.
it allows you to supply via a csv string, the captions, hints and anwers for various buttons that will appear in a panel when you click the button/ or rollover the button. the panel can look like a callout bubble, you can specify left,riggh alignment.... lots of other parameters.

If you install the package it will appear in the BGRA Buttons package.

https://github.com/josh65github/BGRACONTROLS-Expanding-Buttons/releases/tag/V0.1.18A

video
https://github.com/josh65github/BGRACONTROLS-Expanding-Buttons/blob/main/Vids/exp_but.mp4

Picture attached is of the Example 3 project, included in the package.
« Last Edit: May 26, 2022, 09:36:27 pm by Josh »
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.

circular

  • Hero Member
  • *****
  • Posts: 3829
    • Personal webpage
Re: BGRA Controls
« Reply #466 on: May 27, 2022, 05:40:58 pm »
I quite like the triangular shape that joins the bubble to the button.  :)
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3953
Re: BGRA Controls
« Reply #467 on: May 27, 2022, 10:48:49 pm »
Please test on macos and linux, if I remember well the panel transparency was working only under Windows.

circular

  • Hero Member
  • *****
  • Posts: 3829
    • Personal webpage
Re: BGRA Controls
« Reply #468 on: May 28, 2022, 07:58:42 pm »
Indeed, transparency doesn't work on MacOS:
Conscience is the debugger of the mind

Josh

  • Hero Member
  • *****
  • Posts: 939
Re: BGRA Controls
« Reply #469 on: May 28, 2022, 10:38:47 pm »
Hi

It captures the image underneath the panel, then copies it to the panel canvas, maybe MacOs does not like the copyscreen routine?.

Lubuntu seems ok.
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.

circular

  • Hero Member
  • *****
  • Posts: 3829
    • Personal webpage
Re: BGRA Controls
« Reply #470 on: May 28, 2022, 11:47:02 pm »
Oh in fact, it is not transparent, but the content copied. That solves the problem of transparency indeed.

So, I come to the same conclusion, that on MacOS, the part the copies the background is not doing so.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3953
Re: BGRA Controls
« Reply #471 on: May 29, 2022, 03:29:25 am »
We can publish this control with bgracontrols Josh?

circular

  • Hero Member
  • *****
  • Posts: 3829
    • Personal webpage
Re: BGRA Controls
« Reply #472 on: May 29, 2022, 09:08:20 am »
I've added (on dev) a property "TargetRasterImageList" to the TBGRASVGImageList to automatically populate a TImageList. Whenever the size or the items are modified, the target list is updated, which can be used at design time for controls using the raster image list.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3953
Re: BGRA Controls
« Reply #473 on: May 30, 2022, 11:10:04 pm »
New release BGRAControls v7.5
-Fix TabStop setting it to false in object inspector
-Update bctrackbarupdown.pas
-avoid hint
-populate ImageList automatically
-clearing raster imagelist, avoid rasterize on loading
-TBCMaterialProgressBarMarquee

Josh please add your controls in dev-bgracontrols branch if you wish, add the examples in the examples folder, so we can make another release with your controls.
« Last Edit: May 30, 2022, 11:11:53 pm by lainz »

AFFRIZA 亜風実

  • Full Member
  • ***
  • Posts: 136
Re: BGRA Controls
« Reply #474 on: May 31, 2022, 04:47:36 am »
Hello, everyone. I am using BC 7.4, seems rounding on BCPanel doesn't work as expected but BCButton works fine. Also, when I assigned a style macos-highsierra.bcpnl, the width and height always 0, I can't modify them. Sorry for my bad English.
« Last Edit: May 31, 2022, 04:49:32 am by Dio Affriza »
Kyoukai Framework: https://github.com/afuriza/kyoukai_framework

Dukung kemerdekaan Donetsk dan Lugansk! Tidak membalas profil berbendera biru-kuning apalagi ber-Bandera.

circular

  • Hero Member
  • *****
  • Posts: 3829
    • Personal webpage
Re: BGRA Controls
« Reply #475 on: June 05, 2022, 09:31:36 am »
I've tried TBCMaterialProgressBarMarquee. That works well on MacOS. An interesting way of showing progression when we don't know how much time it is going to take.  :)
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3953
Re: BGRA Controls
« Reply #476 on: June 12, 2022, 01:52:01 am »
I've tried TBCMaterialProgressBarMarquee. That works well on MacOS. An interesting way of showing progression when we don't know how much time it is going to take.  :)

Thanks. I did my best to keep much as posible as the Android progress bar animation.

 

TinyPortal © 2005-2018