Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / FpSlider Class / DoPaint Method
GDI+ graphics drawing surface
Image rectangle
Background color
Foreground (text) color
Value of slider control
Whether the control has focus
Color of slider knob
Orientation of slider
Minimum value of slider
Maximum value of slider
Space between slider tick marks
Background picture of slider
Width in pixels of slider knob
Overall slider track width
Picture (image) for slider knob
Color of slider track
Picture (image) for slider track
Whether the control is locked
True if the slider knob is moving
True if mouse is over the knob
Specifies how visual style is applied to the control
Color of the slider tick marks
True to paint right to left
Width of the slider ticks


In This Topic
    DoPaint Method (FpSlider)
    In This Topic
    Paints the slider control.
    Syntax
    'Declaration
     
    
    Public Shared Sub DoPaint( _
       ByVal g As Graphics, _
       ByVal r As Rectangle, _
       ByVal backColor As Color, _
       ByVal foreColor As Color, _
       ByVal value As Integer, _
       ByVal focus As Boolean, _
       ByVal knobColor As Color, _
       ByVal orient As SliderOrientation, _
       ByVal minimum As Integer, _
       ByVal maximum As Integer, _
       ByVal tickSpacing As Integer, _
       ByVal backpict As Picture, _
       ByVal knobWidth As Integer, _
       ByVal trackWidth As Integer, _
       ByVal knobPicture As Picture, _
       ByVal trackColor As Color, _
       ByVal trackPicture As Picture, _
       ByVal bLocked As Boolean, _
       ByVal valueIsAdjusting As Boolean, _
       ByVal ptInKnob As Boolean, _
       ByVal visualStyles As VisualStyles, _
       ByVal tickColor As Color, _
       ByVal rightToLeft As Boolean, _
       ByVal tickLength As Integer _
    ) 
    'Usage
     
    
    Dim g As Graphics
    Dim r As Rectangle
    Dim backColor As Color
    Dim foreColor As Color
    Dim value As Integer
    Dim focus As Boolean
    Dim knobColor As Color
    Dim orient As SliderOrientation
    Dim minimum As Integer
    Dim maximum As Integer
    Dim tickSpacing As Integer
    Dim backpict As Picture
    Dim knobWidth As Integer
    Dim trackWidth As Integer
    Dim knobPicture As Picture
    Dim trackColor As Color
    Dim trackPicture As Picture
    Dim bLocked As Boolean
    Dim valueIsAdjusting As Boolean
    Dim ptInKnob As Boolean
    Dim visualStyles As VisualStyles
    Dim tickColor As Color
    Dim rightToLeft As Boolean
    Dim tickLength As Integer
     
    FpSlider.DoPaint(g, r, backColor, foreColor, value, focus, knobColor, orient, minimum, maximum, tickSpacing, backpict, knobWidth, trackWidth, knobPicture, trackColor, trackPicture, bLocked, valueIsAdjusting, ptInKnob, visualStyles, tickColor, rightToLeft, tickLength)

    Parameters

    g
    GDI+ graphics drawing surface
    r
    Image rectangle
    backColor
    Background color
    foreColor
    Foreground (text) color
    value
    Value of slider control
    focus
    Whether the control has focus
    knobColor
    Color of slider knob
    orient
    Orientation of slider
    minimum
    Minimum value of slider
    maximum
    Maximum value of slider
    tickSpacing
    Space between slider tick marks
    backpict
    Background picture of slider
    knobWidth
    Width in pixels of slider knob
    trackWidth
    Overall slider track width
    knobPicture
    Picture (image) for slider knob
    trackColor
    Color of slider track
    trackPicture
    Picture (image) for slider track
    bLocked
    Whether the control is locked
    valueIsAdjusting
    True if the slider knob is moving
    ptInKnob
    True if mouse is over the knob
    visualStyles
    Specifies how visual style is applied to the control
    tickColor
    Color of the slider tick marks
    rightToLeft
    True to paint right to left
    tickLength
    Width of the slider ticks
    See Also