Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Scrollbar doesn't draw properly when using a Stylist

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Scrollbar doesn't draw properly when using a Stylist
Link Posted: 18-Jul-2006 01:50
Hello,

I have the following stylist code.  I am then using this stylist for the grid.

When I do so, the scrollbar doesn't draw properly. The buttons and the thumb are a strange gray color.

The other parts of the grid seem to draw fine, including the scrollbar background.

Here is the stylist code:
[VB.Net]
Public Class MyStylist
    Inherits Stylist

    Public Overrides Sub Draw(ByVal sdi As NineRays.Windows.Drawing.StylistDrawInfo)
        Select Case sdi.Element
            Case Parts.RowHeader
                ControlPaint.DrawBorder3D(sdi.Graphics, sdi.Rectangle.X, sdi.Rectangle.Y + 1, sdi.Rectangle.Width, sdi.Rectangle.Height, Border3DStyle.RaisedInner)
        End Select
    End Sub

    Public Overrides Function GetSortArrowWidth() As Integer
    End Function

    Public Overrides Function SupportsDrawing(ByVal sdi As NineRays.Windows.Drawing.StylistDrawInfo) As Boolean
        Return (sdi.Element = Parts.RowHeader)
    End Function
End Class
Link Posted: 18-Jul-2006 02:46
Thanks, this problem will fixed to today update.
Link Posted: 18-Jul-2006 03:43
Great, thanks!