Recent

Author Topic: Darwin Cocoa: Tabs don't show pictures  (Read 3415 times)

zoltanleo

  • Sr. Member
  • ****
  • Posts: 488
Darwin Cocoa: Tabs don't show pictures
« on: September 06, 2021, 11:34:40 pm »
Hi folks!

I am trying to display pictures on pagecontrol components tabs. I don't succeed it for Darwin, in other OS the pictures are displayed correctly.
It's a bug?
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2023
  • Former Delphi 1-7, 10.2 user
Re: Darwin Cocoa: Tabs don't show pictures
« Reply #1 on: September 07, 2021, 03:19:28 am »
If you look at the Apple Cocoa documentation for NSTabView you will note that there is no facility for including an image in a tab.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Darwin Cocoa: Tabs don't show pictures
« Reply #2 on: September 07, 2021, 08:50:27 am »
trev is right not quite right. 

NSTabViewItem is responsible for the page control tabs. There's a property added for an image... however, it's only available for macOS 10.10 (and was never implemented originally)

It's also need to note, that masOS design guildelines doesn't even mention the possibility of having an image on the tabview.

Instead the use of "label" is encouraged.
« Last Edit: September 07, 2021, 09:03:00 am by skalogryz »

zoltanleo

  • Sr. Member
  • ****
  • Posts: 488
Re: Darwin Cocoa: Tabs don't show pictures
« Reply #3 on: September 07, 2021, 09:39:43 am »
@trev
@skalogryz

Thank you for your answers and patience.  Makos is a completely new system for me.  Therefore, I will always be grateful for additional information.
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

 

TinyPortal © 2005-2018