[Lazarus] Drawing over LCL controls

patspiper patspiper at gmail.com
Fri Oct 5 17:48:06 CEST 2012

On 05/10/12 18:26, Krzysztof wrote:
> Hi,
> Can I draw something on standard lazarus controls (e.g TEdit)? I
> created new control which inherit from TEdit and override PaintWindow
> method but is is never fired
I am not sure if what you are looking for is like TButtonEdit in LCL. It 
anchors a TSpeedButton to the TEdit. It is not the ideal solution, but 
it works. Some of the disadvantages are:

- The need for glue code that handles anchoring, freeing, visibility, 
readonly, etc...
- The width/height of the component are those of the TEdit itself
- The needed button's events must be explicitly exposed

Maybe a special component anchor control can be devised to provide the 


More information about the Lazarus mailing list