Recent

Author Topic: [solved] LM_GetDlgCode not called  (Read 2087 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2402
    • UVviewsoft
[solved] LM_GetDlgCode not called
« on: May 21, 2015, 02:55:50 pm »
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];
 
« Last Edit: May 22, 2015, 03:41:42 pm by Alextp »

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: LM_GetDlgCode note called?
« Reply #1 on: May 22, 2015, 02:59:03 pm »
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

  • Hero Member
  • *****
  • Posts: 2402
    • UVviewsoft
Re: LM_GetDlgCode note called?
« Reply #2 on: May 22, 2015, 03:02:38 pm »
ATSynedit is not SynEdit :) Tks for help, KeyDown is guilty

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: LM_GetDlgCode note called?
« Reply #3 on: May 22, 2015, 03:40:21 pm »
ATSynedit is not SynEdit :)...

Sorry, my mistake. I should be more careful when reading posts...

 

TinyPortal © 2005-2018