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
Color of not used space in TSRVTabset
Re: Color of not used space in TSRVTabset
I figured it out: It works with the graphic in the element 'Tabset Background'.
-
- Site Admin
- Posts: 17564
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Color of not used space in TSRVTabset
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.
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.