OnKeyDown absent in TScrollBox lazarus / 31-LCL ---------------------------------------------------------------------- Shebuka · 2012-03-02 14:01 Subject is talking by himself Why there is no OnKeyDown in TScrollBox? Laz SVN and FPC 2.6 ---------------------------------------------------------------------- Blaazen · 2012-03-02 14:17 There is OnKeyDown, but it is not published. TScrollBox is derived from TCustomControl. Maybe you can try assign something (in code). ---------------------------------------------------------------------- Shebuka · 2012-03-02 15:01 Quote from: Blaazen on March 02, 2012, 03:17:54 pmThere is OnKeyDown, but it is not published. TScrollBox is derived from TCustomControl. Maybe you can try assign something (in code). This trick works, but i don't understand why if it's not assigned it doesn't pass the keydown event to it's parent (in my case Form, wich has keydown assigned), i know that for example timage pass keydown event automatically to it's parent. ---------------------------------------------------------------------- Blaazen · 2012-03-02 15:09 TImage is derived from TGraphicControl (a "lightweight" component). Did you assign property Form.Keypreview to True ? ---------------------------------------------------------------------- Shebuka · 2012-03-02 18:01 Quote from: Blaazen on March 02, 2012, 04:09:25 pmTImage is derived from TGraphicControl (a "lightweight" component). Did you assign property Form.Keypreview to True ? No, it's false in the form with image and it's also false in the form with scrollbox