Fine-tuning tab panel appearance

Hello,

I’m trying to set a form to a ligh blue background color with a tab panel that shows forms of a different background color. There is an area directly within the tab panel that I can’t seem to control… it’s showing up as a slightly darker blue. I’d just like it to be gray, the same color as the nested form. Please take a look at the attached image. Any way to control the color of that area?

Thanks,

Andrew

amason:
Hello,

I’m trying to set a form to a ligh blue background color with a tab panel that shows forms of a different background color. There is an area directly within the tab panel that I can’t seem to control… it’s showing up as a slightly darker blue. I’d just like it to be gray, the same color as the nested form. Please take a look at the attached image. Any way to control the color of that area?

Thanks,

Andrew

Try to set the border of the form you’re showing to NONE.

Hi Andrew,

The colour of the area inside the tabpanel can’t be set seperatly.
For the Mac OS X Look and Feel I can understand that you would want this but for any other LAF this is a non-issue.

If you want to have full control I suggest you set the tabpanel as hidden and create your own look and feel (images, etc).

Hope this helps.

I have done some testing (again). Unless you want to hack the os x laf there is no way to use anything other than the methods provided to us by Servoy. This is really a look and feel thing and has nothing to do with Servoy and or Java…

This is also an issue with pop-up menus on the mac as well (the field border shows and looks crappy with the mac “bubble” list).

To get around this - I use two style sheets - one for Mac and one for everything else. I create a tabpanel style and a field style (I call my pop-up menu style “combo”) - and then I set the background to transparent on the mac style sheet, and have no definition on the windows sheet.

That won’t really help your particular problem - as that is 100% Mac LAF issue, but I hope it helps in other cases.

and then I set the background to transparent on the mac style sheet

Bob, how exactly do you do that in a style? In the Reference I read that for background-color “transparent” is a possible value. So in my style I have

field
{
   background-color: transparent;
}

This, however, seems to have no effect!? Could you shed some light on this?

Thanks
Patrick

Check your objects and make sure that the “transparent” property is NOT set on the object. Then it should work.

I don’t think it does. I have tried all combinations. I guess I will “file” that one. But I double check tomorrow.