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: FourthWorld, heatherlaine, Klaus, kevinmiller

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

Set Tab Menu Background Color?

Post by cmhjon » Wed Dec 29, 2021 4:48 pm

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 3696 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: 10097
Joined: Fri Feb 19, 2010 10:17 am

Re: Set Tab Menu Background Color?

Post by richmond62 » Wed Dec 29, 2021 6:39 pm

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: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Set Tab Menu Background Color?

Post by dunbarx » Wed Dec 29, 2021 6:40 pm

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: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Set Tab Menu Background Color?

Post by dunbarx » Wed Dec 29, 2021 6:44 pm

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: 10097
Joined: Fri Feb 19, 2010 10:17 am

Re: Set Tab Menu Background Color?

Post by richmond62 » Wed Dec 29, 2021 6:53 pm

Revolting.

Frankly you'd be better to "roll your own".

Klaus
Posts: 14193
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Set Tab Menu Background Color?

Post by Klaus » Wed Dec 29, 2021 7:24 pm

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: 191
Joined: Tue Aug 04, 2015 11:55 am

Re: Set Tab Menu Background Color?

Post by cmhjon » Wed Dec 29, 2021 8:39 pm

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

Thanks everyone!
Jon :)

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Set Tab Menu Background Color?

Post by mwieder » Wed Dec 29, 2021 9:26 pm

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