Page 1 of 1
Set Tab Menu Background Color?
Posted: Wed Dec 29, 2021 4:48 pm
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 (11.38 KiB) Viewed 3702 times
I've set every available fill color to red and the color doesn't change. Can this be done?
Thank you,
Jon
Re: Set Tab Menu Background Color?
Posted: Wed Dec 29, 2021 6:39 pm
by richmond62
This is revolting:
-
-
I grouped the TAB thing and set the backGroundColor of the group.
Re: Set Tab Menu Background Color?
Posted: Wed Dec 29, 2021 6:40 pm
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
Re: Set Tab Menu Background Color?
Posted: Wed Dec 29, 2021 6:44 pm
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
Re: Set Tab Menu Background Color?
Posted: Wed Dec 29, 2021 6:53 pm
by richmond62
Revolting.
Frankly you'd be better to "roll your own".
Re: Set Tab Menu Background Color?
Posted: Wed Dec 29, 2021 7:24 pm
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.

Re: Set Tab Menu Background Color?
Posted: Wed Dec 29, 2021 8:39 pm
by cmhjon
No big deal. I just added rounded rectangle graphic underneath.
Thanks everyone!
Jon

Re: Set Tab Menu Background Color?
Posted: Wed Dec 29, 2021 9:26 pm
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