TW3GraphicControl
Unit: SmartCL.Components.pas
- Hierarchy
- TObject
- TW3TagObj
- TW3Component
- TW3MovableControl
- TW3CustomControl
- TW3GraphicControl
- TW3CustomControl
- TW3MovableControl
- TW3Component
- TW3TagObj
Properties |
---|
Canvas |
Context |
DC |
Protected Methods |
Paint |
Methods |
Invalidate |
Refresh |
Events |
OnPaint |
Properties
Canvas
Identify TW3Canvas object. Canvas object provide set of functions such as Ellipse that may be used for drawing complex objects.
property Canvas: TW3Canvas read FCanvas;
Remarks:
TW3Canvas provide indirect access to the HTML5 CANVAS element which is created when control is created.
Context
Provide access to Context object associated with Canvas.
property Context: TW3CustomGraphicContext read FContext;
DC
Provide access to DC object.
property DC: THandle read GetDC;
Protected Methods
Paint
Called when component is repainted. Descendants may override this method and place drawing code.
procedure Paint; virtual;
Methods
Invalidate
Insert Paint call into queue.
procedure Invalidate; override;
Refresh
Immediately call Paint method.
procedure Refresh;
Remarks:
If BeginUpdate method is called, call will be ignored.
Events
OnPaint
Occurs when Paint method is called.
property OnPaint: TPaintEvent read FOnPaint write FOnPaint;