Recent

Author Topic: Does SynEdit or SynMemo have a ready made menu to go with?  (Read 3017 times)

vfclists

  • Hero Member
  • *****
  • Posts: 1165
    • HowTos Considered Harmful?
Does SynEdit or SynMemo have a ready made menu to go with?
« on: March 15, 2016, 11:49:55 pm »
Does SynEdit or SynMemo have a ready made menu to go with?

I am looking for the kind of menu you get on most memos, like Copy, Paste, Select All, Cut etc
Lazarus 3.0/FPC 3.2.2

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Does SynEdit or SynMemo have a ready made menu to go with?
« Reply #1 on: March 16, 2016, 01:23:02 am »
Lazarus trunk menu editor has a standard menu template that is close to that (see the context menu on a new mainmenu initial item).
You can also customise  what is offered, and save it as a new menu template for future use.

Edson

  • Hero Member
  • *****
  • Posts: 1327
Re: Does SynEdit or SynMemo have a ready made menu to go with?
« Reply #2 on: March 16, 2016, 02:32:07 am »
It's easy to implement such menu. SynEdit, have the methods Copy, Paste, ...
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12209
  • Debugger - SynEdit - and more
    • wiki
Re: Does SynEdit or SynMemo have a ready made menu to go with?
« Reply #3 on: March 16, 2016, 03:27:33 am »
I think it even supports TAction for copy/paste.
Though that has probably not been tested in a long time.


SynMemo is deprecated.  http://wiki.lazarus.freepascal.org/Lazarus_1.6.0_release_notes#SynMemo_is_now_Deprecated

Edson

  • Hero Member
  • *****
  • Posts: 1327
Re: Does SynEdit or SynMemo have a ready made menu to go with?
« Reply #4 on: March 16, 2016, 04:10:21 am »
Maybe, this library can help you:

https://github.com/t-edson/SynFacilUtils

It's some kind of "ACME" complement for SynEdit, including basic dialogs and functions for a common editor.

Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

 

TinyPortal © 2005-2018