# setTabBGColorAt

**URL:** <https://forum.servoy.com/t/settabbgcolorat/997>\
**Category:** Classic Servoy\
**Created:** [January 12, 2004, 10:00am UTC](https://forum.servoy.com/t/settabbgcolorat/997 "2004-01-12T10:00:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [January 12, 2004, 10:00am UTC](https://forum.servoy.com/t/settabbgcolorat/997/1 "2004-01-12T10:00:35Z")

</div>

Wonderfull new feature together with the possibility to set the forground color.

However, either I do something wrong or there is a bug.

Setting the background is easy and it works both on win and mac…

Setting the background color back to default doesn’t work like I expected on win.

I do setTabBGColorAt(2, null). This gives me, as mentioned, a clean tab back on mac but on win the tab is white now…

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [January 13, 2004, 10:58pm UTC](https://forum.servoy.com/t/settabbgcolorat/997/2 "2004-01-13T22:58:56Z")

</div>

This is controlled by the native look and feel, you better save the colors with:  
var fgcolor = getTabFGColorAt(tabindex)  
var bgcolor = getTabBGColorAt(tabindex)  
will be availeble in Servoy 2.0 rc1

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [January 13, 2004, 11:22pm UTC](https://forum.servoy.com/t/settabbgcolorat/997/3 "2004-01-13T23:22:11Z")

</div>

Thanks again Jan!!!
