Hi, DoContextMenu(...) cannot work, this method only manages OnContextPopup event. Perform(LM_CONTEXTMENU, 0, 0) (or SendMessage or PostMessage) works here (Qt). Handle must have assigned PopupMenu and it needs correct parameters, not just (...,0, 0) which shows Popmenu in the top-left screen corner here. V. ______________________________________________________________
Od: AlexeyT via Lazarus <lazarus@lists.lazarus-ide.org> Komu: Lazarus mailing list <lazarus@lists.lazarus-ide.org> Datum: 10.03.2018 09:27 Předmět: [Lazarus] Call context menu in my component
Hi. I try to call context menu inside ATSynEdit: - DoContextMenu(...)- does nothing - Perform(LM_CONTEXTMENU, 0, 0)- does nothing - WMContextMenu() must work but I need TMessage param for it, how to get it? -- Regards, Alexey -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus <https://lists.lazarus-ide.org/listinfo/lazarus>
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus