dbicCalc Send comments on this topic.
UserDrawnButton Event
See Also 
dbicCalc Assembly > Dbi.WinControl.Calc Namespace > dbiCalc Class : UserDrawnButton Event

Occurs before a button is rendered, allowing the developer to handle the drawing themselves.

Syntax

Visual Basic (Declaration) 
Public Event UserDrawnButton As dbiCalc.EventUserDrawnButtonHandler
C# 
public event dbiCalc.EventUserDrawnButtonHandler UserDrawnButton

Event Data

The event handler receives an argument of type UserDrawnButtonEventArgs containing data related to this event. The following UserDrawnButtonEventArgs properties provide information specific to this event.

PropertyDescription
BackColor Gets or sets the primary background color of the button being drawn.
BackColorTo Gets or sets the secondary background color of the button being drawn.
ButtonState Gets the current state of the button being drawn.
CalculatorButton Determines the calculator button that will be drawn
FillType Gets or sets the background pattern of the button to be drawn.
Font Gets or sets the font of the text in the button to be drawn.
ForeColor Gets or sets the color of the text in the button to be drawn.
Graphics A handle to the graphics object used to draw the button.
PaintButton Determines if the internal routines of the control should draw the button. When the PaintButton property is set to False the control does not execute its internal paint routine and the developer has control over the painting of the button.
Rect A rectangle representing the area of the button in the control.
Text Gets or sets the text of the button to be drawn.

Requirements

Target Platforms: Current Windows operating system with .NET 8.

See Also