* * *

Author Topic: Problem compiling and installing TRichEdit  (Read 1865 times)


  • Jr. Member
  • **
  • Posts: 72
    • P S Technology, Inc.
Problem compiling and installing TRichEdit
« on: April 29, 2017, 08:26:14 pm »
I have a Delphi project with a form that uses TRichEdit. I downloaded the TRichEdit package from http://wiki.lazarus.freepascal.org/lzRichEdit but I get the following errors:

Compile package LazRichEdit 0.1.5: Exit code 1, Errors: 1
gtk2wsrichbox.pas(41,29) Fatal: Cannot find Gtk2Proc used by Gtk2WSRichBox. Enable flag "Use Unit" of unit Gtk2Proc in package LCL.

Code: Pascal  [Select]
  1. {
  2. lzRichEdit
  4. Copyright (C) 2010 Elson Junio elsonjunio@yahoo.com.br
  6. This is the file COPYING.modifiedLGPL, it applies to several units in the
  7. Lazarus sources distributed by members of the Lazarus Development Team.
  8. All files contains headers showing the appropriate license. See there if this
  9. modification can be applied.
  11. These files are distributed under the Library GNU General Public License
  12. (see the file COPYING.LGPL) with the following modification:
  14. As a special exception, the copyright holders of this library give you
  15. permission to link this library with independent modules to produce an
  16. executable, regardless of the license terms of these independent modules,
  17. and to copy and distribute the resulting executable under terms of your choice,
  18. provided that you also meet, for each linked independent module, the terms
  19. and conditions of the license of that module. An independent module is a
  20. module which is not derived from or based on this library. If you modify this
  21. library, you may extend this exception to your version of the library, but
  22. you are not obligated to do so. If you do not wish to do so, delete this
  23. exception statement from your version.
  26. If you didn't receive a copy of the file COPYING.LGPL, contact:
  27.       Free Software Foundation, Inc.,
  28.       675 Mass Ave
  29.       Cambridge, MA  02139
  30.       USA
  31. }
  33. unit Gtk2WSRichBox;
  35. {$mode objfpc}{$H+}
  37. interface
  39. uses
  40.   Classes, SysUtils, Controls, Graphics, LCLType, LCLProc, Clipbrd, StdCtrls, WSRichBox,
  41.   gtk2, glib2, gdk2, pango, Gtk2Proc, Gtk2Def, gdk2pixbuf, Gtk2Globals,
  42.   Gtk2WSControls, RichBox, Gtk2RTFTool;
  44. const BulletCode=$2022;
Seems like every time I think I have Lazarus figured out as well as Delphi, there is some new quirk.  %)


  • Hero Member
  • *****
  • Posts: 4743
Re: Problem compiling and installing TRichEdit
« Reply #1 on: April 29, 2017, 08:44:52 pm »
Not your fault, seems to be a package issue.

Try RichMemo instead (http://wiki.freepascal.org/RichMemo). I just tried it: it compiles and runs file.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10


  • Jr. Member
  • **
  • Posts: 72
    • P S Technology, Inc.
Re: Problem compiling and installing TRichEdit
« Reply #2 on: April 30, 2017, 08:37:06 am »
Thanks. I only needed it to try and port a TTY demo from ComDrv32. Now I no longer need to do that.


  • Newbie
  • Posts: 4
Re: Problem compiling and installing TRichEdit
« Reply #3 on: August 18, 2017, 01:30:48 am »
I am new to Lazarus and Pascal. This is something I have been looking for. Can someone tell me how to install it?

Many thanks.
OS : Windows 10 64 bit or Ubuntu Linux 64 bit
Laz: Lazarus 1.6.4



Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus