Page 1 of 1

Color of not used space in TSRVTabset

Posted: Thu Aug 10, 2023 11:20 am
by Jim Knopf
Hello Sergey,

I just can't find the place where I can specify the colour for the unused area of a TRVTabset, so where there are no more tabs because the window is wider.
Can you please tell me where I can specify the colour/bitmap?

Best regards
Martin

P.S. Link of the example doesn't work with image button, it is http://danesch.eu/down/NotUsed.jpg

Image

Re: Color of not used space in TSRVTabset

Posted: Tue Aug 29, 2023 7:59 am
by Jim Knopf
I figured it out: It works with the graphic in the element 'Tabset Background'.

Re: Color of not used space in TSRVTabset

Posted: Tue Aug 29, 2023 8:58 am
by Sergey Tkachenko
Sorry for the delay.

TSRVTabSet can be drawn in several modes, and the answer depends on the mode.

If it is drawn using TRVSkinManager, the color may be defined in SRVSkinManager.CurrentSkin.Elements[SRVSkinManager.HorizontalTabSetSchemes[SRVTabSet.SkinSchemeIndex].ImgBackgroundCenter].Color.

If skins are not used, or ImgBackgroundCenter element is not defined in the skin, then
- If SRVTabSet.SRVControlStyle = srvcsClassic, then SRVTabset.Color is used.
- If SRVTabSet.SRVControlStyle = srvcsSimple, then RVControlsPainter.TabColor (i.e., the same as color of inactive tab) is used.