[Lazarus] Call context menu in my component
Vojtěch Čihák
vojtech.cihak at atlas.cz
Sat Mar 10 16:56:27 CET 2018
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 at lists.lazarus-ide.org>
> Komu: Lazarus mailing list <lazarus at 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 at lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus <https://lists.lazarus-ide.org/listinfo/lazarus>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180310/7eeaba18/attachment.html>
More information about the Lazarus
mailing list