'Declaration
Public Overloads Shared Sub DoPaint( _ ByVal g As Graphics, _ ByVal r As Rectangle, _ ByVal backColor As Color, _ ByVal foreColor As Color, _ ByVal font As Font, _ ByVal halign As HorizontalAlignment, _ ByVal valign As VerticalAlignment, _ ByVal pressed As Boolean, _ ByVal focus As Boolean, _ ByVal text As String, _ ByVal textDown As String, _ ByVal nAlign As ButtonTextAlign, _ ByVal textOrientation As TextOrientation, _ ByVal wordWrap As Boolean, _ ByVal shadowSize As Integer, _ ByVal darkColor As Color, _ ByVal lightColor As Color, _ ByVal pictUp As Image, _ ByVal pictDown As Image, _ ByVal bLocked As Boolean, _ ByVal prefix As HotkeyPrefix, _ ByVal style As VisualStyles, _ ByVal mouseOver As Boolean _ )
'Usage
Dim g As Graphics Dim r As Rectangle Dim backColor As Color Dim foreColor As Color Dim font As Font Dim halign As HorizontalAlignment Dim valign As VerticalAlignment Dim pressed As Boolean Dim focus As Boolean Dim text As String Dim textDown As String Dim nAlign As ButtonTextAlign Dim textOrientation As TextOrientation Dim wordWrap As Boolean Dim shadowSize As Integer Dim darkColor As Color Dim lightColor As Color Dim pictUp As Image Dim pictDown As Image Dim bLocked As Boolean Dim prefix As HotkeyPrefix Dim style As VisualStyles Dim mouseOver As Boolean FpButton.DoPaint(g, r, backColor, foreColor, font, halign, valign, pressed, focus, text, textDown, nAlign, textOrientation, wordWrap, shadowSize, darkColor, lightColor, pictUp, pictDown, bLocked, prefix, style, mouseOver)
public static void DoPaint( Graphics g, Rectangle r, Color backColor, Color foreColor, Font font, HorizontalAlignment halign, VerticalAlignment valign, bool pressed, bool focus, string text, string textDown, ButtonTextAlign nAlign, TextOrientation textOrientation, bool wordWrap, int shadowSize, Color darkColor, Color lightColor, Image pictUp, Image pictDown, bool bLocked, HotkeyPrefix prefix, VisualStyles style, bool mouseOver )
Parameters
- g
- GDI+ graphics surface
- r
- Image rectangle
- backColor
- Background color
- foreColor
- Foreground (text) color
- font
- Font of text
- halign
- Horizontal alignment
- valign
- Vertical alignment
- pressed
- Whether the button is pressed
- focus
- Whether it is in focus
- text
- Text of button when not pressed
- textDown
- Text of pressed button
- nAlign
- Alignment of text with respect to image in button
- textOrientation
- Orientation of text
- wordWrap
- Whether text wraps to multiple lines
- shadowSize
- Size of the shadow around the button
- darkColor
- Color of the shadow (dark part of button)
- lightColor
- Color of light part of button
- pictUp
- Picture (image) when button is not pressed
- pictDown
- Picture (image) when button is pressed
- bLocked
- Whether the cell is locked
- prefix
- Whether the ampersand character underlines text
- style
- Determines the button style
- mouseOver
- True if mouse is over button