Recent

Author Topic: OSX Fonts are not showing BgraControls  (Read 7347 times)

Josh

  • Hero Member
  • *****
  • Posts: 1271
OSX Fonts are not showing BgraControls
« on: July 15, 2015, 01:03:00 am »
Hi
Just thought I would update Mac (10.6.8) with latest BGRABitmap (8.7) and latest BGRAControls (3.7 Master) and also ueControls 6.0.7.
Now tbclabel, tbcbutton are not showing fonts.
If I drop a TLabel on form, I can see the caption. If I do the same with TBCLabel, I cannot see the caption.

Any ideas?
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Josh

  • Hero Member
  • *****
  • Posts: 1271
Re: OSX Fonts are not showing BgraControls
« Reply #1 on: July 15, 2015, 04:15:55 pm »
Just an Update.

Just downloaded 1.4.2 for OSX and installled same as above and am getting the same, no text Appearing.
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: OSX Fonts are not showing BgraControls
« Reply #2 on: July 15, 2015, 07:50:57 pm »
Yes, there is a bug.

It is also mentionned in this topic.

http://forum.lazarus.freepascal.org/index.php/topic,28880.0.html

I am a bit puzzled about it.
Conscience is the debugger of the mind

Josh

  • Hero Member
  • *****
  • Posts: 1271
Re: OSX Fonts are not showing BgraControls
« Reply #3 on: July 15, 2015, 08:44:29 pm »
Hi Circular,

Thats damn annoying....

Do you know what the latest version of BGRABITMAP and BGRACONTROLS are that I can use on OSX.

If you want me to test or try anything, please let me know

Thanks for your response.

Josh
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: OSX Fonts are not showing BgraControls
« Reply #4 on: July 15, 2015, 09:33:36 pm »
Try using oder releases of BGRABitmap. BGRAControls should work the latest version. If there is any compile error in BGRAControls with older BGRABitmap let me know.

Josh

  • Hero Member
  • *****
  • Posts: 1271
Re: OSX Fonts are not showing BgraControls
« Reply #5 on: July 15, 2015, 11:37:04 pm »
Hi 007
Yep, gone back to 8.5.2 and the text starts showing.
What has changed from 8.5.2 to 8.6 as 8.6 does not display.

Hopefully this can fixed at some point...

Thanks for your help

Josh
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: OSX Fonts are not showing BgraControls
« Reply #6 on: July 17, 2015, 11:06:59 pm »
Well yes it is frustrating.
Conscience is the debugger of the mind

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: OSX Fonts are not showing BgraControls
« Reply #7 on: July 29, 2015, 05:25:31 pm »
Try using oder releases of BGRABitmap. BGRAControls should work the latest version. If there is any compile error in BGRAControls with older BGRABitmap let me know.

Just confirming, the controls seem to work , and look very nice, but button captions do not show up in OS X with bgracontrols-3.6,  BGRABitmap 8.7, they work in 8.5.2.

In bcsample the labels have yellow backgrounds, are they supposed to?
Also, the popup menu (Action1, Action2) gets stuck to the first display location, and stays the same for each button.

BGRAControls looks really great, I'm looking into using it in my projects.

Cheers,
VTwin
« Last Edit: July 29, 2015, 05:49:40 pm by VTwin »
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: OSX Fonts are not showing BgraControls
« Reply #8 on: July 29, 2015, 08:04:42 pm »
I suppose there is indeed a problem with the background color as well. Unfortunately I don't have a MacOS around to debug it.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: OSX Fonts are not showing BgraControls
« Reply #9 on: July 31, 2015, 06:53:49 am »
Take it easy you did a great work. If someone is really interested you can tell what changed from the latest version that works and ask they to try to find the bug. I think...

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: OSX Fonts are not showing BgraControls
« Reply #10 on: July 31, 2015, 11:58:14 pm »
Yep.
Conscience is the debugger of the mind

Zittergie

  • Full Member
  • ***
  • Posts: 114
    • XiX Music Player
Re: OSX Fonts are not showing BgraControls
« Reply #11 on: August 02, 2015, 01:50:23 pm »
Hi,

the problem started with the change from svn revision 1096  to  snv revision 1097.
In the file 'bgrapixel.inc' the following was added:

Code: [Select]
  {$IFDEF DARWIN}
  {$DEFINE BGRABITMAP_RGBAPIXEL}
  {$ENDIF}

when you remark these out in the newest svn revision (1118) like this

Code: [Select]
(*
  {$IFDEF DARWIN}
  {$DEFINE BGRABITMAP_RGBAPIXEL}
  {$ENDIF}
*)

everything seems to work as it should.
Be the difference that makes a difference

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: OSX Fonts are not showing BgraControls
« Reply #12 on: August 02, 2015, 02:42:30 pm »
Thanks!

The directives you are poining out are there to improve speed on MacOS. The color order is RGB on Darwin, so using directly RGB order avoids some processing. But it seems to fail to retrieve bitmap data.

Maybe I did a mistake in LoadFromRawImageImplementation function in BGRALCLBitmap. According to the discussion with VTwin, the problem would be in CopyAndSwapIfNecessaryAndReplaceAlpha.
« Last Edit: August 02, 2015, 02:54:52 pm by circular »
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018