Recent

Author Topic: BGRA Controls  (Read 165324 times)

josh

  • Hero Member
  • *****
  • Posts: 806
Re: BGRA Controls v4.3.2
« Reply #255 on: September 27, 2017, 11:44:52 pm »
Hi Lainz,

ANy update on thie issue, or were you waiting for some tests from me?

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.

lainz

  • Hero Member
  • *****
  • Posts: 3925
  • Leandro Diaz
Re: BGRA Controls v4.3.2
« Reply #256 on: October 01, 2017, 04:09:03 pm »
Hi Lainz,

ANy update on thie issue, or were you waiting for some tests from me?

Josh

Sorry I forget. I will report it in GitHub of BGRABitmap so if Circular has some free time can investigate this.

https://github.com/bgrabitmap/bgrabitmap/issues/11

Is sure about two different methods of drawing text, I can do nothing by myself to solve this.
« Last Edit: October 01, 2017, 04:29:21 pm by lainz »

josh

  • Hero Member
  • *****
  • Posts: 806
Re: BGRA Controls v4.3.2
« Reply #257 on: October 20, 2017, 02:37:02 am »
unfortunatley I do not get much spare time to check forum for updates.
i assume this issue is still pending?
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.

mtron

  • New member
  • *
  • Posts: 6
Re: BGRA Controls v4.3.2
« Reply #258 on: November 28, 2017, 08:59:22 pm »
Hi friends,

Hopefully, this is correct forum thread ...

I am experimenting with BGRA Controls on a Mac with High Sierra and high-dpi (retina) screen. It looks like BGRA Controls on a Mac are not yet dpi aware. Is that expected behaviour at this time?

Using it with Lazarus 1.8RC5, installed BGRA Controls from Lazarus Online Package Manager, which states BGRA Controls "4.3.2.0 Up to date".

Attaching screenshots illustrating problem, during the design time, running as Carbon, running as Cocoa/64bit: regular LCL TButton, TLabel are rendered properly, however TBCButton and TBCLabel are not.

Hope somebody can point me to the right direction, thanks in advance!

lainz

  • Hero Member
  • *****
  • Posts: 3925
  • Leandro Diaz
Re: BGRA Controls v4.3.2
« Reply #259 on: November 28, 2017, 10:08:42 pm »
Hi, and what happens for example when you draw something OnPaint event of form, is also blurry?

The same happens on Windows when you set High DPI, you need to change the manifest of your application to enable High DPI in the entire form.

Seems that Mac doesn't know that these controls can be scaled properly, instead of trying to change it's width and height, it just scales the original bitmap.

There must be a setting to handle properly High DPI on mac.

Else *any* not just bgracontrols, any custom control will get blurry.

Information:
https://developer.apple.com/library/content/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Introduction/Introduction.html#//apple_ref/doc/uid/TP40012302
« Last Edit: November 28, 2017, 10:44:33 pm by lainz »

lainz

  • Hero Member
  • *****
  • Posts: 3925
  • Leandro Diaz
Re: BGRA Controls v4.3.2
« Reply #260 on: November 28, 2017, 11:53:25 pm »
With esvignolo found that BGRABitmap is the problem
https://github.com/bgrabitmap/bgrabitmap/issues/13

I can do nothing for fixing it, I just reported that bug.

mtron

  • New member
  • *
  • Posts: 6
Re: BGRA Controls v4.3.2
« Reply #261 on: November 29, 2017, 06:06:38 pm »
Hi lainz,

Thanks for confirming and reporting the issue on GitHub!

lainz

  • Hero Member
  • *****
  • Posts: 3925
  • Leandro Diaz
Re: BGRA Controls v4.3.2
« Reply #262 on: November 29, 2017, 08:22:13 pm »
Hi lainz,

Thanks for confirming and reporting the issue on GitHub!

No problem.

I've added a new control called ColorSpeedButton in BGRAControls. It uses BGRABitmap only for the Glyph on Linux. For all the drawings it uses normal Canvas, that works fine on retina display.

It has only a border and a body color, but is something you can use, not to replace all stuff that is handled in BCButton, but is fast and nice.

mtron

  • New member
  • *
  • Posts: 6
Re: BGRA Controls v4.3.2
« Reply #263 on: November 30, 2017, 06:36:14 am »

I've added a new control called ColorSpeedButton in BGRAControls. It uses BGRABitmap only for the Glyph on Linux. For all the drawings it uses normal Canvas, that works fine on retina display.

It has only a border and a body color, but is something you can use, not to replace all stuff that is handled in BCButton, but is fast and nice.

Excellent, works great! Attaching screenshot from Cocoa 64 sample.

Huge thanks!

lainz

  • Hero Member
  • *****
  • Posts: 3925
  • Leandro Diaz
Re: BGRA Controls v4.3.3.1
« Reply #264 on: November 30, 2017, 03:18:00 pm »
Thanks for testing. Tested on all desktop platforms by now.

lainz

  • Hero Member
  • *****
  • Posts: 3925
  • Leandro Diaz
Re: BGRA Controls v4.4
« Reply #265 on: December 13, 2017, 10:35:53 pm »
BGRAControls 4.4
Since v4.4 the components TBCDefaultThemeManager, TBCKeyboard and TBCNumericKeyboard are not installed by default to allow Linux users to get a seamless installation with the Online Package Manager not installing third party stuff. If you want these components turn on the "Register unit" in the package options for each file (bcdefaulthememanager.pas, bckeyboard.pas, bcnumerickeyboard.pas) then compile and rebuild Lazarus. On Linux you need to install libxtst-dev and libgl-dev first.

lainz

  • Hero Member
  • *****
  • Posts: 3925
  • Leandro Diaz
Re: BGRA Controls v4.4
« Reply #266 on: December 19, 2017, 12:08:34 am »
Hi, I decided that instead of making a new set of components I will keep updating BGRAControls, I need your support in Patreon!
https://www.patreon.com/lainz

Keep coding with BGRAControls, I will add all the new stuff and exclusive packages in Patreon.

Lainz.
« Last Edit: December 19, 2017, 12:52:38 am by lainz »

Paul_

  • Full Member
  • ***
  • Posts: 136
Re: BGRA Controls v4.4
« Reply #267 on: December 19, 2017, 01:13:59 am »
Ok, I send some support (2 months) because I'm using it BGRABitmap and Controls long time.



lainz

  • Hero Member
  • *****
  • Posts: 3925
  • Leandro Diaz
Re: BGRA Controls v4.4
« Reply #268 on: December 19, 2017, 01:30:12 am »
Ok, I send some support (2 months) because I'm using it BGRABitmap and Controls long time.

Many thanks =)

seliman

  • New Member
  • *
  • Posts: 10
Re: BGRA Controls v4.4
« Reply #269 on: December 19, 2017, 08:07:08 pm »
Hi , my name is Ramiro ,

I want install package BGRA Control v4.4 , and found one error , please can you help me ??


This is error

lazarus 1.8

bcbutton.pas(407,4) Fatal: Cannot open include file "icons\bcbutton_icon.lrs"

Thanks in advance

Sorry my english

 

TinyPortal © 2005-2018