I’ve got a TMemo with an associated TPopupMenu on a FireMonkey form.
When I rightclick on the memo, I get my own popup menu, but after my popup disappears I still get the default popup (the one that says cut, copy, paste, select all).
How do I disable the default menu, or can I add my own items to the default menu perhaps?
I can’t reproduce this behavior. Here’s what I tried:
File->New->FireMonkey HD ApplicationTMemoandTPopupMenuon the formPopupMenutoMemo1.PopupMenuin the Object InspectorPopupMenu, and assign them both the sameOnClickevent (generated in the Object Inspector). I left the default caption ofMenuItem1andMenuItem2in theCaptionof both items.MessageDlgthat displaysTMenuItem(Sender).Captionwith a singleOkbutton in theOnClickhandler.Memo1, and choose either menu itemI get a single menu displayed with my two items (
MenuItem1andMenuItem2). Choosing either item displays the appropriateCaptionin a message dialog, and clickingOkin that dialog. There is no default popup menu displayed.EDIT: Found it for you. This is a bug fixed in Update 3 – see the list of bug fixes in Update 3, and search for
98705, or scroll through until you reach the section onFireMonkey\Components(it’s the second or third entry under that section).