Color of not used space in TSRVTabset

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
Jim Knopf
Posts: 241
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

Color of not used space in TSRVTabset

Post 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
Jim Knopf
Posts: 241
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

Re: Color of not used space in TSRVTabset

Post by Jim Knopf »

I figured it out: It works with the graphic in the element 'Tabset Background'.
Sergey Tkachenko
Site Admin
Posts: 17553
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Color of not used space in TSRVTabset

Post 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.
Post Reply