Recent

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

hakelm

  • Full Member
  • ***
  • Posts: 153
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: 1756
    • 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 -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

Thaddy

  • Hero Member
  • *****
  • Posts: 16343
  • Censorship about opinions does not belong here.
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.
There is nothing wrong with being blunt. At a minimum it is also honest.

Zvoni

  • Hero Member
  • *****
  • Posts: 2792
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: 1147
    • 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