[SOLVED] Handling Enabled property lazarus / 31-LCL ---------------------------------------------------------------------- pcurtis · 2022-02-25 10:57 If I drop a groupbox on a form, and drop a label on the groupbox. The labels apperance will reflect the state of the enabled property of the groupbox. This is normal. If I create a component based on TCustomcontrol, how can I "catch" if the state of the enabled property of the parent control changes? I have attached a demo that shows the issue. A standard label on the custom groupbox will reflect the groupboxes enabled state, whereas the custom label will not, but if the custom label is placed on a standard groupbox it works. All custom controls are made at runtime. ---------------------------------------------------------------------- Zvoni · 2022-02-25 11:30 This? https://lazarus- ccr.sourceforge.io/docs/lcl/controls/tcontrol.enabledchanged.html https://lazarus-ccr.sourceforge.io/docs/lcl/controls/tcontrol.addhandl eronenabledchanged.html ---------------------------------------------------------------------- pcurtis · 2022-02-25 11:54 ok thanks. I haven't got a clue how to use it. Google is useless. ---------------------------------------------------------------------- pcurtis · 2022-02-26 06:15 OK. Thanks, sorted.