Recent

Author Topic: Call context menu from inside my component  (Read 761 times)

Alextp

  • Hero Member
  • *****
  • Posts: 721
    • UVviewsoft
Call context menu from inside my component
« on: March 10, 2018, 09:39:49 am »
I want to call context menu by Ctrl+click on macOS.
In ATSynEdit. Most LCL controls already call it in Ctrl+Click, but ATSynEdit does not. I don't know why.

How to call context menu? Seems WMContextMenu() does it, but I need TMessage parameter for it. How to get it?
Perform(LM_CONTEXTMENU, 0, 0) don't help.

ASerge

  • Hero Member
  • *****
  • Posts: 998
Re: Call context menu from inside my component
« Reply #1 on: March 10, 2018, 02:39:54 pm »
How to call context menu? Seems WMContextMenu() does it, but I need TMessage parameter for it. How to get it?
See TLMContextMenu.