Set Tab Menu Background Color?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
cmhjon
Posts: 199
Joined: Tue Aug 04, 2015 11:55 am

Set Tab Menu Background Color?

Post by cmhjon »

Hi all,

Sorry to bother you all with some trivial but I would like to change the color of the background in a tab menu:
Screen Shot 2021-12-29 at 10.41.20 AM.jpg
Screen Shot 2021-12-29 at 10.41.20 AM.jpg (11.38 KiB) Viewed 4752 times
I've set every available fill color to red and the color doesn't change. Can this be done?

Thank you,
Jon
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10430
Joined: Fri Feb 19, 2010 10:17 am

Re: Set Tab Menu Background Color?

Post by richmond62 »

This is revolting:
-
SShot 2021-12-29 at 19.38.24.png
-
I grouped the TAB thing and set the backGroundColor of the group.
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10509
Joined: Wed May 06, 2009 2:28 pm

Re: Set Tab Menu Background Color?

Post by dunbarx »

Hi.

I never use tab panels, and, hmmm, nothing seems to affect the overall backColor.

This is just a button style, but it is made of several other native controls. It may be that you have to overlay a rectangle graphic, set the backColor of that, and set the blendLevel to something you like.

Craig
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10509
Joined: Wed May 06, 2009 2:28 pm

Re: Set Tab Menu Background Color?

Post by dunbarx »

Richmond.

Revolting.

The compound object that is a tab panel just likely does not have a backColor property, even though no error is thrown if you try to set it. May be possible to hack the IDE...

Craig
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10430
Joined: Fri Feb 19, 2010 10:17 am

Re: Set Tab Menu Background Color?

Post by richmond62 »

Revolting.

Frankly you'd be better to "roll your own".
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Set Tab Menu Background Color?

Post by Klaus »

The TAB button, like other controls, is supplied by the underlying OS,
so we cannot modify them, we have to take what we get, or roll our own,
as others already mentioned. :D
cmhjon
Posts: 199
Joined: Tue Aug 04, 2015 11:55 am

Re: Set Tab Menu Background Color?

Post by cmhjon »

No big deal. I just added rounded rectangle graphic underneath.

Thanks everyone!
Jon :)
mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3582
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Set Tab Menu Background Color?

Post by mwieder »

That's similar to how I deal with it as well. Note that this was a deliberate change in LC8 (some 5 years ago) and only affects OSX.

https://quality.livecode.com/show_bug.cgi?id=17219
Post Reply