[]
Paints the slider control.
public static void DoPaint(Graphics g, Rectangle r, Color backColor, Color foreColor, int value, bool focus, Color knobColor, SliderOrientation orient, int minimum, int maximum, int tickSpacing, Picture backpict, int knobWidth, int trackWidth, Picture knobPicture, Color trackColor, Picture trackPicture, bool bLocked, bool valueIsAdjusting, bool ptInKnob, VisualStyles visualStyles, Color tickColor, bool rightToLeft, int tickLength)
Public Shared Sub DoPaint(g As Graphics, r As Rectangle, backColor As Color, foreColor As Color, value As Integer, focus As Boolean, knobColor As Color, orient As SliderOrientation, minimum As Integer, maximum As Integer, tickSpacing As Integer, backpict As Picture, knobWidth As Integer, trackWidth As Integer, knobPicture As Picture, trackColor As Color, trackPicture As Picture, bLocked As Boolean, valueIsAdjusting As Boolean, ptInKnob As Boolean, visualStyles As VisualStyles, tickColor As Color, rightToLeft As Boolean, tickLength As Integer)
Type | Name | Description |
---|---|---|
Graphics | g | GDI+ graphics drawing surface |
Rectangle | r | Image rectangle |
Color | backColor | Background color |
Color | foreColor | Foreground (text) color |
int | value | Value of slider control |
bool | focus | Whether the control has focus |
Color | knobColor | Color of slider knob |
SliderOrientation | orient | Orientation of slider |
int | minimum | Minimum value of slider |
int | maximum | Maximum value of slider |
int | tickSpacing | Space between slider tick marks |
Picture | backpict | Background picture of slider |
int | knobWidth | Width in pixels of slider knob |
int | trackWidth | Overall slider track width |
Picture | knobPicture | Picture (image) for slider knob |
Color | trackColor | Color of slider track |
Picture | trackPicture | Picture (image) for slider track |
bool | bLocked | Whether the control is locked |
bool | valueIsAdjusting | True if the slider knob is moving |
bool | ptInKnob | True if mouse is over the knob |
VisualStyles | visualStyles | Specifies how visual style is applied to the control |
Color | tickColor | Color of the slider tick marks |
bool | rightToLeft | True to paint right to left |
int | tickLength | Width of the slider ticks |