Scrollbar Appearance

Posted by: wp_pietf on 8 September 2017, 3:21 pm EST

  • Posted 8 September 2017, 3:21 pm EST

    Using v9.
    When I use the classic theme the scrollbar appearance is flat (XP look) and not consistent with the rest of my application.
    How to solve this.

    Thanks in advance.

    -Piet
  • Replied 8 September 2017, 3:21 pm EST

    Hello,

    When the Classic theme is loaded, then the Spread will use the VisualStyles by default to paint. This is by default using the XP themes and colors.

    There are only two scrollbars that we have built in to the Spread (EnhancedScrollBarRenderer and DefaultScrollBarRenderer). If you would like to paint your own scrollbar, you can create a custom class that implements the FarPoint.Win.Spread.IScrollBarRenderer interface.

    Thanks,
    Reeva
  • Replied 8 September 2017, 3:21 pm EST

    Hi Reeva,

    is there a way to clone the active windows scrollbar look so I can stay in sync with rest of my windows controls? If not it should be, since a windows application consists not only from spread controls.

    Regards,

    -Piet
  • Marked as Answer

    Replied 8 September 2017, 3:21 pm EST

    Solved it (for now)

    For everyone who needs this:

    Dim s As New Spread.SpreadSkin
    s.CopyFrom(Spread.DefaultSpreadSkins.Classic)
    s.Name = "MySkin"
    s.RowHeaderDefaultStyle.VisualStyles = VisualStyles.Off
    s.ColumnHeaderDefaultStyle.VisualStyles = VisualStyles.Off
    s.CornerDefaultStyle.VisualStyles = VisualStyles.Off
    s.ScrollBarRenderer = New Spread.DefaultScrollBarRenderer()
    s.Apply(mySpread)

    -Piet
  • Replied 8 September 2017, 3:21 pm EST

    Hello,

    We are glad to know that your issue is resolved.

    Thanks,
    Reeva
Need extra support?

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

Learn More

Forum Channels