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


     I am using Far Point 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?

  • Replied 8 September 2017, 1:26 pm EST

    Have a look at the following thread...

  • Replied 8 September 2017, 1:26 pm EST

    Hi Bob,

    I set the rendered as mentioned in the link provided

    this.fpEventHistory.VerticalScrollBar.Renderer = new FarPoint.Win.Spread.DefaultScrollBarRenderer();

    this.fpEventHistory.HorizontalScrollBar.Renderer = new FarPoint.Win.Spread.DefaultScrollBarRenderer();

    this.fpEventHistory_Sheet.ColumnHeader.DefaultStyle.Renderer = new FarPoint.Win.Spread.CellType.ColumnHeaderRenderer();

    this.fpEventHistory_Sheet.RowHeader.DefaultStyle.Renderer = new FarPoint.Win.Spread.CellType.RowHeaderRenderer();

    this.fpEventHistory_Sheet.SheetCorner.DefaultStyle.Renderer = new FarPoint.Win.Spread.CellType.ColumnHeaderRenderer();

    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.

  • Replied 8 September 2017, 1:26 pm EST


    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.

Need extra support?

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

Learn More

Forum Channels