[SOLVED] TSynCompletion: invoke autocomplete popup programmatically? lazarus / 31-LCL ---------------------------------------------------------------------- BigChimp · 2014-10-23 09:24 Hi, Looking at lazsqlx code. That code uses a Windows specific unit in a OnKeyPress handler to rewrite various key combinations to Ctrl-Space. http://forum.lazarus.freepascal.org/index.php/topic,22041.msg160592.ht ml#msg160592 Net result: instead of just Ctrl-Space, more keyboard shortcuts invoke autocomplete. I'm looking into removing this dependency and wondering whether it is possible to directly invoke the autocomplete popup. Looking at the tsyncompletion code in trunk there doesn't seem to be a way... but I'm well known for missing things. Any suggestions? Thanks! ---------------------------------------------------------------------- Martin_fr · 2014-10-23 12:42 Code: [Select]SynEdit.CommandProcessor(TheSynCompletion.ExecCommandID, '', nil) ---------------------------------------------------------------------- BigChimp · 2014-10-23 13:08 Thank you Martin, that works perfectly! Edit: updated synedit wiki article with your snippet...