* * *

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

Alextp

  • Hero Member
  • *****
  • Posts: 655
    • 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: 903
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.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus