SheetTab rendering issue

Posted by: p.feenstra on 22 July 2021, 8:53 pm EST

  • Posted 22 July 2021, 8:53 pm EST

    Hi Jitender,

    I'm using my own skin copied from DefaultSpreadSkins.Office2013
    The accent color I use is blue.
    In R12 the result is correct but in R14 the SheetTabs don't have the correct size and accent color (dpi at 100%)
    Can you tell me what is changed in R14? Do I have to create a special custom renderer for the tabs now?

    Regards Piet

  • Replied 23 July 2021, 12:59 am EST

    Hi Piet,

    The display of Spread 14 does not look correct, so I'm reporting it to the team [SPNET-19000].
    What do you mean by accent color here? There are no accent settings in SpreadSkin. Are you referring to ThemeColors, perhaps?

    Regards,
    Jitender
  • Replied 23 July 2021, 1:23 am EST

    Jitender,

    The accent color is a theme color. I don't remember who came up with that name.
    It is used in the PaintSpecialActiveSelection function (overridden)

    Regards Piet
  • Replied 25 July 2021, 5:38 pm EST

    Hi Piet,

    PaintSpecialActiveSelection is a method of row/column header Renderers. However, from your screenshot, you've also modified other parts of Spread.
    Have you also overridden InterfaceRenderer? Have you set the ActiveBottomBorderColor?
    Can you show us your implementation for InterfaceRenderer so we can check why there is a difference between Spread 12 and Spread 14?

    Thanks,
    Jitender
  • Replied 25 July 2021, 6:33 pm EST

    Hi Jitender,

    You are right. And I'm using the FlatInterfaceRenderer.
    Added the ActiveBottomBorderColor to my code and that worked.
    In R12 I only used the ActiveForeColor to get my colors right.
    Could the ActiveBottomBorderColor be a new property?

    Now only the TabHeight remains.
    I notice that at 150% dpi it is almost okay.

    Regards Piet
  • Replied 25 July 2021, 7:04 pm EST

    Yes, ActiveBottomBorderColor is a new property. Previously ActiveForeColor was used to modify both the border and the fore color.

    The TabHeight issue is currently with the developers. I'll update this thread once a fix for this is available.

    Regards,
    Jitender
  • Replied 7 November 2021, 11:47 pm EST

    Hi Jitender,

    because I haven't heard from you until now, I've created my own InterfaceRenderer based on the FlatInterfaceRenderer.
    It more or less solves the problem, for now.
    But now I have the old issue of ToolTips (TextTips) on the SheetTabs back.
    Without using IInterfaceRenderer it worked ok.
    Have I missed something? Or is this still the old bug from years ago.

    Regards Piet
  • Replied 9 November 2021, 5:51 pm EST

    Hi Piet,

    The fix for the SheetTab size issue you mentioned will be available in Spread 15.
    Is the Tooltip issue the same as you've mentioned in this post?
    https://www.grapecity.com/forums/spread-winforms/texttip-issue

    If not, can you please describe what you are observing?

    Thanks,
    Jitender
  • Replied 10 November 2021, 7:59 pm EST

    Hi Jitender,

    Look at the picture. That's how I fixed it.
    But it also results in in TextTips for the tabs (if policy = floating)
    How can I get rid of this?

    Regards Piet



  • Replied 11 November 2021, 3:34 pm EST

    I could not observe Texttips on Sheet Tabs at my end.
    Can you please attach your sample here so we investigate the cause for this?

    Regards,
    Jitender
  • Replied 14 November 2021, 7:56 pm EST

    Jitender,

    If you use the FlatInterfaceRenderer you will not observe the TextTips.
    But if you use IInterfaceRenderer you will.

    If we can't get rid of this tips (bug) is there a way to set the text value?

    Regards Piet
  • Replied 21 December 2021, 4:18 pm EST

    Hi Piet,

    The original issue in this thread (incorrect Sheet tab size) has been fixed in Spread 15.
    You will no longer need to use a custom Interface Renderer as a workaround for this (which was causing the tooltips; a Custom Renderer by default shows the tooltip when it cannot fit in the Sheet tab, we will consider making this part of the public API so you can choose to display the tooltip or not).
  • Replied 21 December 2021, 11:02 pm EST

    Hi Jitender,

    What I don't understand is that the text is relative small to the tab size. It should never popup in this situation.

    In the meantime i'm having trouble installing Spread 15.
    There seems to be an issue with the installer so I can't test that for now.

    I'll keep you posted.

    Regards Piet
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels