Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



Share:
Notifications
Clear all

[Solved] Lazarus - MacOS X - BGRAControls not showing text

4 Posts
2 Users
0 Reactions
1,590 Views
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2859
Topic starter  

An issue I ran into, when using BGRAControls (wiki) under MacOS X.
The controls (button and label etc) did not show the text anymore.

After some searching, I found this Lazarus Forum post which confirms this is a bug with an older version of BGRABitmap, a unit used by BGRAControls.

The best solution is to go and download the latest BGRAControls and BGRABitmap, and install those.
BGRABitmap can be found here: SourceForge or Github
BGRAControls can be found here: SourceForge or GitHub

First open the BGRABitmap LPK and compile it, after that compile and install BGRAControls.

If you insist on using the older version: the problem started with the change from svn revision 1096 to snv revision 1097.

In the file 'bgrapixel.inc' the following was added to speed up things under MacOS X:

  {$IFDEF DARWIN}
  {$DEFINE BGRABITMAP_RGBAPIXEL}
  {$ENDIF}

when you remark these out like this

(* 
  {$IFDEF DARWIN}
  {$DEFINE BGRABITMAP_RGBAPIXEL}
  {$ENDIF} 
*)

then things should work as well. I do recommend though to download the latest version!


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2859
Topic starter  

Note:

Due to a conflict between developers of BGRAControls and ueControls, some of the components have disappeared, for example TBGRALed and TBGRAPanel.

The suggested approach is to use ueControls instead, which is not only a PITA, but also certain features will no longer be available.

It's also too bad that such a conflict has to be reolved over the backs of us Lazarus users ... sad.


   
ReplyQuote
(@Anonymous)
Joined: 1 second ago
Posts: 0
 

Great Job Thank for Share This .


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2859
Topic starter  

Thanks f391r 


   
ReplyQuote
Share: