TMemo Right-Mouse Click Produces Menu lazarus / 31-LCL ---------------------------------------------------------------------- sfeinst · 2011-04-25 22:23 I'm trying to determine if this is the correct functioning before reporting a bug. I have a TMemo.  I assigned a popup menu to it (I am not trapping the mouse events).  When I right-click the memo, I get my menu (which is correct) and then when it closes I get what looks like it is a default memo-oriented menu probably generated by the widgetset used. I have compiled using QT, GTK2 and Windows.  This only happens for QT.  For GTK2 and Windows, I just get my menu. I then created a new project and added a TMemo without any code.  When I run that project, both QT and GTK2 produce some default menu (QT's menu is different from GTK2's menu slightly).  I did not try in Windows yet. I am running the latest build. Am I supposed to code around the default menu (which means I am doing something wrong)?  Is the default supposed to show if I don't have my own menu but not if I do (which implies a QT LCL bug)?  Should I never get a default menu (which means TMemo might have an issue)? Thanks, Steve ---------------------------------------------------------------------- Blaazen · 2011-04-26 00:03 It is a bug. I can reproduce it with TMemo. TEdit also displays system popup menu but only if PopupMenu property is not assigned. If I assign my own popup, then only my own menu is displayed. TStringGrid displays my own menu on right-click OR system-popup (only when cell is in editing state) but never both as with TMemo.