TWebPaintBox
Description
Below is a list of the most important properties methods and events for the TWebPaintBox
. TWebPaintBox
is a group of radio button controls similar to a VCL TPaintBox
.
![]() |
![]() |
---|---|
Designtime | Runtime |
Properties for TWebPaintBox
Property | Description |
---|---|
ElementClassName | Optionally sets the CSS classname for the label when styling via CSS is used |
ElementID | Optionally sets the HTML element ID for a HTML element in the form HTML file the label needs to be connected with. When connected, no new label is created but the Delphi class is connected with the existing HTML element in the form HTML file |
Events for TWebPaintBox
Property | Description |
---|---|
OnPaint | Event triggered when the paintbox needs to be repainted. The WebPaintBox.Canvas can be used as in the VCL TPaintBox to draw within the paintbox control |
OnTouchEnd | Event triggered when a touch on the paintbox ends |
OnTouchMove | Event triggered when a move is made while touching the paintbox control |
OnTouchStart | Event triggered when a touch on the paintbox starts |
This example code snippet demonstrates how to paint something in the TWebPaintBox
:
Result: