TGraphicControl
TGraphicControl is a base class for lightweight components like TBevel.
It supports simple lightweight controls that do not need the ability to accept keyboard input or contain other controls.
Since lightweight controls do not wrap GUI widgets, they use fewer resources than controls based on TWinControl.
TGraphicControl provides a Canvas property for access to the control's drawing surface and a virtual Paint method and an OnPaint handler, called in response to paint requests received by the parent control.
Override the Paint method or supply your own OnPaint handler, to do the actual drawing of the control.
If you want to accept keyboard input, or need to support child controls, use a TCustomControl instead.
Most important members:
See also
From the Free Pascal wiki, page "TGraphicControl", as it stood on 2019-12-30 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
