Changing the Title Bar and the Scrollbar colors of the Spread according to Windows Themes

Posted by: sathyan-fp on 8 September 2017, 1:26 pm EST

  • Posted 8 September 2017, 1:26 pm EST

    <P>Hi,</P>
    <P> I am using Far Point 4.0.0.2000.2005. I want to change the color of the Title Bar and the scroll bar in the spread when I change the windows theme colors (Blue or Olive Green or Silver). I want the title bar and the scroll bar to be aligned with the themes colour and also not lose the gradient look and feel. Please let me know on how to do it?</P>
  • Replied 8 September 2017, 1:26 pm EST

    <p>Have a look at the following thread...</p><p>http://www.clubfarpoint.com/Forums/forums/thread/66314.aspx <br></p>
  • Replied 8 September 2017, 1:26 pm EST

    <P>Hi Bob,</P>
    <P>I set the rendered as mentioned in the link provided</P><FONT color=#0000ff size=2>
    <P>this</FONT><FONT size=2>.fpEventHistory.VerticalScrollBar.Renderer = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> FarPoint.Win.Spread.</FONT><FONT color=#008080 size=2>DefaultScrollBarRenderer</FONT><FONT size=2>();</P>
    <P></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>.fpEventHistory.HorizontalScrollBar.Renderer = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> FarPoint.Win.Spread.</FONT><FONT color=#008080 size=2>DefaultScrollBarRenderer</FONT><FONT size=2>();</P>
    <P></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>.fpEventHistory_Sheet.ColumnHeader.DefaultStyle.Renderer = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> FarPoint.Win.Spread.CellType.</FONT><FONT color=#008080 size=2>ColumnHeaderRenderer</FONT><FONT size=2>();</P>
    <P></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>.fpEventHistory_Sheet.RowHeader.DefaultStyle.Renderer = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> FarPoint.Win.Spread.CellType.</FONT><FONT color=#008080 size=2>RowHeaderRenderer</FONT><FONT size=2>();</P>
    <P></FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>.fpEventHistory_Sheet.SheetCorner.DefaultStyle.Renderer = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> FarPoint.Win.Spread.CellType.</FONT><FONT color=#008080 size=2>ColumnHeaderRenderer</FONT><FONT size=2>();</FONT></P>
    <P><FONT size=2>What i inferred is that dynamic change of themes (keeping the application open) does not change the header colors of the spread automatically. They are not bound to the different theme colors. Also, there is no gradient LAF with the default rendered. Provided i need both of them, please let me know the steps to arrive at the same.</P></FONT>
  • Replied 8 September 2017, 1:26 pm EST

    <P>Hello,</P>
    <P>You would need to create your own EnhancedxxxxRenderer to assign to these properties where you set the gradient the way you want. Or you can use the Skins designer to create your skin for the Spread in the GUI.</P>
Need extra support?

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

Learn More

Forum Channels