Re: [Lazarus] Call context menu in my component

2018-03-10 Thread Vojtěch Čihák via Lazarus

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 
Komu: Lazarus mailing list 
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


[Lazarus] Call context menu in my component

2018-03-10 Thread AlexeyT via Lazarus

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