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

Rasied before the text of a button is drawn.

Syntax

Visual Basic (Declaration) 
Public Event UserDrawnButtonText As dbiCalc.EventUserDrawnButtonTextHandler
C# 
public event dbiCalc.EventUserDrawnButtonTextHandler UserDrawnButtonText

Event Data

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

PropertyDescription
ButtonState Gets the state of the button to be drawn.
CalculatorButton Gets the button being drawn.
Font Gets or sets the font of the button text being drawn.
ForeColor Gets or sets the color used to paint the text in the button.
Graphics A handle to the graphics object used to draw the button.
PaintText Determines if the internal routines of the control should draw the button's text. When the PaintText property is set to False the control does not execute its internal paint routine and the developer has control over the drawing of the button's text.
Rect A rectangle representing the area of the button in the control.
Text Gets or sets the text string to be be drawn in the button.

Remarks

This event will not fire for a button, if the PaintButton Property of the UserDrawnButton Event that preceeded it was set to false.

Requirements

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

See Also