[solved] LM_GetDlgCode not called lazarus / 31-LCL ---------------------------------------------------------------------- AlexTP · 2015-05-21 12:55 In atSynEdit i added Code: [Select]protected     procedure WMGetDlgCode(var Msg: TLMNoParams); message LM_GETDLGCODE; where LM_getdlgcode is the same as WM_getdlgcode (Lmessages.pas). Msg type is also the same. Function not called, I type chars, tabulators, and no call in it? I have in Create this:   ControlStyle:= ControlStyle+[csOpaque, csDoubleClicks, csTripleClicks]; ---------------------------------------------------------------------- ChrisF · 2015-05-22 12:59 Because, the concerned keys are probably "eaten" during the KeyDown message processing. BTW, there is already a WMGetDlgCode procedure in the private section of TSynEditBase. So, I'm not sure about what you are trying to do... Anyway, you can make a try with your function for keys not processed by TSynEdit (or its ascendant): - Escape - Tab/Shift+Tab, if "YourSynEdit.WantTabs := false". ---------------------------------------------------------------------- AlexTP · 2015-05-22 13:02 ATSynedit is not SynEdit Tks for help, KeyDown is guilty ---------------------------------------------------------------------- ChrisF · 2015-05-22 13:40 Quote from: Alextp on May 22, 2015, 03:02:38 pmATSynedit is not SynEdit ... Sorry, my mistake. I should be more careful when reading posts...