OnContextPopup? Cocoa Bug? lazarus / 31-LCL ---------------------------------------------------------------------- Dan3468298 · 2020-07-16 15:15 I have a PopupMenu assigned to the form.  On the form is a TEdit instance.  For the TEdit I want the default OS pop up of 'Select' etc.   However, after assigning the PopupMenu to the Form it is also activated in the TEdit.   How do I prevent this?  I can set Handled to True but what after that?  Thx ---------------------------------------------------------------------- balazsszekely · 2020-07-16 15:17 @Dan3468298 QuoteI have a PopupMenu assigned to the form.  On the form is a TEdit instance.  For the TEdit I want the default OS pop up of 'Select' etc.   However, after assigning the PopupMenu to the Form it is also activated in the TEdit.   How do I prevent this?  I can set Handled to True but what after that?  ThxI cannot reproduce this on windows(Lazarus Trunk/ FPC 3.2.0), it must be a cocoa specific issue. ---------------------------------------------------------------------- Dan3468298 · 2020-07-16 17:42 Thank you GetMem.  Can someone else verify this problem on Cocoa?  Code: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i unit Unit1; {$mode objfpc}{$H+} interface uses  Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, Menus; type   { TForm1 }   TForm1 = class(TForm)    Edit1: TEdit;    MenuItem1: TMenuItem;    MenuItem2: TMenuItem;    PopupMenu1: TPopupMenu;  private   public   end; var  Form1: TForm1; implementation {$R *.lfm} end. TForm1.PopUpMenu := PopUpMenu1 TEdit1.PopUpMenu := None (which means default OS PopUpMenu should apply to Select, Copy,Cut text). ---------------------------------------------------------------------- Dan3468298 · 2020-07-24 14:36 No one else can verify this problem exists using Cocoa?   If so, I would like to file a bug. ---------------------------------------------------------------------- Dan3468298 · 2020-07-29 22:39 Problems still exists in MacOS 2.1.0.   Will file a bug. ---------------------------------------------------------------------- Dan3468298 · 2020-08-02 17:56 Bug Report field https://bugs.freepascal.org/view.php?id=37446