Recent

Author Topic: Integrate external text editor in lazarus application  (Read 1224 times)

hakelm

  • Full Member
  • ***
  • Posts: 173
Integrate external text editor in lazarus application
« on: January 08, 2024, 08:54:00 pm »
I would like to integrate an external text editor in lazarus applications. The editor should out of the box be a bit more streamlined than tmemo or tsynedit. It should have the ability to send and receive information to and from the lazarus program.
Any tip on how to achieve this is in an as simple way as possible is appreciated.
H

cdbc

  • Hero Member
  • *****
  • Posts: 2870
    • http://www.cdbc.dk
Re: Integrate external text editor in lazarus application
« Reply #1 on: January 09, 2024, 02:17:38 am »
Hi
You could try on Qt/Kde based systems, to get a hold of an instance of the QT-editor used in "Kate", "Featherpad" & "KWrite"...
It will take some(a lot) of fiddling with qt's libraries, but maybe ...just maybe  %)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Thaddy

  • Hero Member
  • *****
  • Posts: 19468
  • Glad to be alive.
Re: Integrate external text editor in lazarus application
« Reply #2 on: January 09, 2024, 12:51:21 pm »
If it is just for Windows you can use either word or wordpad through the TOM interfaces (COM). Word does not work for Office365 in the cloud, though. Only a local install. But wordpad may be enough.
More cross-platform is OpenOffice or LibreOffice through XPCom.
Lightweight and also cross platform is Richmemo,  ,or kmemo for that matter, which is a bit better than Tmemo or TSynEdit for Lazarus.
Any "programmer" that knows only one programming language is not a programmer

Zvoni

  • Hero Member
  • *****
  • Posts: 3441
Re: Integrate external text editor in lazarus application
« Reply #3 on: January 09, 2024, 01:01:29 pm »
But wordpad may be enough.
Wasn't WordPad deprecated/announced to be removed in the future by MS?
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

vfclists

  • Hero Member
  • *****
  • Posts: 1165
    • HowTos Considered Harmful?
Re: Integrate external text editor in lazarus application
« Reply #4 on: January 09, 2024, 01:02:52 pm »
You might consider some of the components from CudaText - https://github.com/Alexey-T/CudaText.
Lazarus 3.0/FPC 3.2.2

 

TinyPortal © 2005-2018