Recent

Author Topic: No right click with RichMemo  (Read 212 times)

CésarV

  • New Member
  • *
  • Posts: 16
No right click with RichMemo
« on: September 16, 2022, 01:35:54 pm »
Hi,

How can I activate the mouse right clik on a RichMemo to obtain the windows : Cut, Copy, Past, ... As the others components like TMemo, TEdit, TCombobx, ...etc ...

Thank's for your help.

rvk

  • Hero Member
  • *****
  • Posts: 5017
Re: No right click with RichMemo
« Reply #1 on: September 16, 2022, 02:10:06 pm »
Drop a TPopupMenu on the form and assign it to TRichMemo.PopupMenu.
Implement the Cut, Copy and Paste in the menu-items in the TPopupMenu.

CésarV

  • New Member
  • *
  • Posts: 16
Re: No right click with RichMemo
« Reply #2 on: September 16, 2022, 03:12:56 pm »
Thank's that  works.
I remenber I had this problem width Delphi3. But I forgot it... I did only one word processing...
I didn't think it could still be like this with lazarus in 2022.
And then it's automatic with Memo, Edit, Combobox, etc ... Wy not with RichMemo ?
Best regards.

KodeZwerg

  • Hero Member
  • *****
  • Posts: 568
  • Fifty shades of code.
    • Delphi & FreePascal
Re: No right click with RichMemo
« Reply #3 on: September 16, 2022, 03:15:36 pm »
Wy not with RichMemo ?
Other "Edit"-kind of controls are in most cases derived and controlled by Operating System, your RichMemo not.
« Last Edit: Tomorrow at 31:76:97 by KodeZwerg »

CésarV

  • New Member
  • *
  • Posts: 16
Solved
« Reply #4 on: September 16, 2022, 03:31:39 pm »
 :P

 

TinyPortal © 2005-2018