lzRichEdit did not install in 1.6 lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- bill0287 · 2016-02-19 00:42 I downloaded the sourceforge version of lzRichEdit and tried to install it in Laz1.6 (win32 version) and got this error: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Compile package LazRichEdit 0.1.5: Exit code 1, Errors: 1gtk2wsrichbox.pas(41,29) Fatal: Cannot find Gtk2Proc used by Gtk2WSRichBox. Enable flag "Use Unit" of unit Gtk2Proc in package LCL. any ideas? ---------------------------------------------------------------------- taazz · 2016-02-19 01:40 as the message says you open the package lcl, locate the file name gtk2proc in the project inspector right click and select use unit. REbuild everything and you should be fine. ---------------------------------------------------------------------- bill0287 · 2016-02-19 03:32 Taaz, I am sure your description makes perfect sense to most, but I can't figure out what to do with it. I open the lpk, and when I try to install it, I get that error.  I am not sure how/where to "open the package LCL." I have installed this component before in older versions of Laz without this issue. ---------------------------------------------------------------------- skalogryz · 2016-02-19 05:28 Quote from: bill0287 on February 19, 2016, 04:32:27 amI have installed this component before in older versions of Laz without this issue. maybe it's time to switch to RichMemo? ---------------------------------------------------------------------- bill0287 · 2016-02-19 17:02 Is RichMemo as good or better than RichEdit? ---------------------------------------------------------------------- taazz · 2016-02-19 17:17 Quote from: bill0287 on February 19, 2016, 04:32:27 amTaaz, I am sure your description makes perfect sense to most, but I can't figure out what to do with it. OK, what you do not understand? The open the lcl package part? you know there is an lcl.lpk that you can open right? In my 1.4.4 installation it can be found in \lcl\interfaces. ---------------------------------------------------------------------- wp · 2016-02-19 17:21 Quote from: bill0287 on February 19, 2016, 01:42:32 amI downloaded the sourceforge version of lzRichEdit and tried to install it in Laz1.6 (win32 version) and got this error: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Compile package LazRichEdit 0.1.5: Exit code 1, Errors: 1gtk2wsrichbox.pas(41,29) Fatal: Cannot find Gtk2Proc used by Gtk2WSRichBox. Enable flag "Use Unit" of unit Gtk2Proc in package LCL. any ideas? Why does lzRichEcit require gtk2 units under Windows? Looks like a package issue. I can confirm this compilation error with Laz 1.6, but also with Laz 1.4.4 --> nothing related to Laz 1.6. And: I would not take the disadvantages of modifying a standard Lazarus package (LCL) for fixing a broken package. ---------------------------------------------------------------------- skalogryz · 2016-02-19 18:47 Quote from: bill0287 on February 19, 2016, 06:02:07 pmIs RichMemo as good or better than RichEdit? It's exactly the same, since both are using the exactly same system provided controls. ---------------------------------------------------------------------- polpero · 2016-02-21 21:33 My copy of lzRichEdit worked with the 2 previous releases of 1.6 (on windows) But it won't install now... /// Removing those files for Gtk2 from the package solves the problem... ---------------------------------------------------------------------- Pancetto · 2016-02-24 13:16 No, removing Gtk2-packages doesn't help. More times verify by me! There ara several errors with "illegal type conversion: LongWord to TStream" a.s.o. (unit Win32WSRichBox). Other resolving for the problem? ---------------------------------------------------------------------- skalogryz · 2016-02-24 13:34 Quote from: Pancetto on February 24, 2016, 02:16:11 pmOther resolving for the problem? try RichMemo. Don't forget to add RichMemoHelpers to your uses section, to make RichMemo more delphi compatible (as lzRichEdit does) ---------------------------------------------------------------------- polpero · 2016-02-25 02:34 Pancetto Can you give me examples of the offending operations? I can't yet replicate those error messages you state. thanks ---------------------------------------------------------------------- bill0287 · 2016-02-25 06:04 I opened the lzrichedit lpk and unchecked "use unit" for these three files and the component installed on windows, but the included demo would not compile. interfaces/gtk2/gtk2wsrichbox.pas interfaces/gtk2/gtk2wsrichboxfactory.pas interfaces/gtk2/gtk2rtftool.pas ---------------------------------------------------------------------- wp · 2016-02-25 11:46 Here the compiler complains about a missing JvHtmlParser unit. I just removed the reference to it, and luckily the demo compiles. But note that your way of solving the package compilation issue with the gtk2 files is just a work-around. If you'd once decide to compile your program for gtk2 then you'd have to modify the package again. That's not good. Switch to RichMemo, I did not have any issues with it. Or contact the author of the component ("typo"). ---------------------------------------------------------------------- Pancetto · 2016-02-26 11:34 Quote from: polpero on February 25, 2016, 03:34:20 amPancetto Can you give me examples of the offending operations? I can't yet replicate those error messages you state. thanks In the meanwhile I remove the dependencies for gtk2 in the install package of lzRichEdit as suggested, now it compiles an the error message isn't anymore. I've not yet tried to check my former progs with the component, if so I'll report this here. ---------------------------------------------------------------------- Pancetto · 2016-02-28 15:44 Quote from: skalogryz on February 24, 2016, 02:34:47 pmQuote from: Pancetto on February 24, 2016, 02:16:11 pmOther resolving for the problem? try RichMemo. Don't forget to add RichMemoHelpers to your uses section, to make RichMemo more delphi compatible (as lzRichEdit does) But in spite of RichMemoHelpers "SelAttributes" don't func, but "Paragraph"  well. Could you please try out, I've tested under Lazarus 1.4.4 and 1.6? ---------------------------------------------------------------------- skalogryz · 2016-02-29 00:51 Quote from: Pancetto on February 28, 2016, 04:44:08 pmBut in spite of RichMemoHelpers "SelAttributes" don't func, but "Paragraph"  well. Could you please try out, I've tested under Lazarus 1.4.4 and 1.6? ok, let me see... What exactly doesn't work? Here's a simple test I'm using Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i uses  ..., RichMemo, RichMemoHelpers; type  TForm1 = class(TForm)    Button1: TButton;    RichMemo1: TRichMemo;    procedure Button1Click(Sender: TObject);  private    { private declarations }  public    { public declarations }  end; ... procedure TForm1.Button1Click(Sender: TObject);begin  RichMemo1.SelAttributes.Color:=clRed;end; The selected text turns red as expect. ---------------------------------------------------------------------- skalogryz · 2016-02-29 04:49 I see the problem with styles assignment. has been fixed with r4526. ---------------------------------------------------------------------- Pancetto · 2016-02-29 07:07 Quote from: skalogryz on February 29, 2016, 05:49:01 amI see the problem with styles assignment. has been fixed with r4526. Ok skalogryz, many thanks to you! I'll try your new version r4526. But another problem I've found out yesterday: I installed RichMemo under Lazarus 1.6-x64, it installs, but when you try to use it, you get an error as follows (unit Win32WSRichBox): function StreamSave(dwCookie: PDWORD; pbBuff: LPBYTE; cb: LONG; var pcb: LONG   ): DWORD; stdcall; var   Stream: TStream; begin   try     Stream := TStream(dwCookie^);     pcb := Stream.Write(pbBuff^, cb);     Result := 0;   except     Result := 1;   end; end; The error message first appears at Line no. 210:    Stream := TStream(dwCookie^); --> Error: Illegal type conversion: "LongWord" to "Stream" But there are also several other errors furthermore, all concerning "Illegal type conversion". Please see yourself. Do you consider to upgrade your component so that it would accept also x64-Lazarus? It would be nice! ---------------------------------------------------------------------- skalogryz · 2016-02-29 17:02 Quote from: Pancetto on February 29, 2016, 08:07:39 amBut another problem I've found out yesterday: I installed RichMemo under Lazarus 1.6-x64, it installs, but when you try to use it, you get an error as follows (unit Win32WSRichBox): ... But there are also several other errors furthermore, all concerning "Illegal type conversion". Please see yourself. RichMemo is not using Win32WSRichBox unit. The unit is a part of lzRichEdit package. So I'd recommend to stop using it. RichMemo provides two methods to Load and Save RTF: LoadRichText and SaveRichText respectively. So far they've been working for win64. ---------------------------------------------------------------------- Pancetto · 2016-02-29 21:40 Quote from: skalogryz on February 29, 2016, 06:02:51 pmQuote from: Pancetto on February 29, 2016, 08:07:39 amBut another problem I've found out yesterday: I installed RichMemo under Lazarus 1.6-x64, it installs, but when you try to use it, you get an error as follows (unit Win32WSRichBox): ... But there are also several other errors furthermore, all concerning "Illegal type conversion". Please see yourself. RichMemo is not using Win32WSRichBox unit. The unit is a part of lzRichEdit package. So I'd recommend to stop using it. RichMemo provides two methods to Load and Save RTF: LoadRichText and SaveRichText respectively. So far they've been working for win64. Yes, you are all right! I used lzRichEdit before I changed to your RichMemo and there was still a dependency of lzRichEdit! Thanks, skalogryz! I've also checked out your new Version r4527, and now the problem with SelAttributes.Styles is'nt anymore. ---------------------------------------------------------------------- mac01 · 2016-11-14 23:10 Hi I have been porting an older application to MAC; which has lazarus 1.7 fpc 3.1.1 installed on it. The latest lazrichedit I can find does not compile/install on the version. Did anyone manage to get or modify this component to work with the later Lazarus versions, I notice message to use RichMemo; but this will be a bit of nightmare as the application has many many lzrichedit controls. Hoping, crossing fingers, that someone has a compatible version of this control. Cheers ---------------------------------------------------------------------- arneolav · 2016-11-18 21:13 I have problems on install RichMemo5360 in Lazarus 1.6.2 unit richmemoregister;  uses   Classes, SysUtils, RichMemo, LResources, PropEdits, RtfEditPropDialog, Forms, Controls; richmemoregister.pas(8,44) Fatal: Cannot find PropEdits used by richmemoregister, incompatible ppu=C:\lazarus\components\ideintf\units \i386-win32\win32\propedits.ppu, package IDEIntf I have done a clean install of Lazarus 1.6.2 and in pacage install, a recompile clean. ---------------------------------------------------------------------- skalogryz · 2016-11-19 00:22 PropEdits is a part of IDEIntf package. The unit is available in 1.6.2 and has not changed. I can think that your richmemo package file has some local modifications and doesn't include dependency on IDEIntf at the moment. Try these things. 1) if you're getting updates via SVN see, if your "richmemopackage.lpk" has been modified. If it is, try to revert it. 2) If you're not using svn, then just open richmemopackage via Package -> Open Loaded Package. In the opened window, make sure that "IDEIntf" is among Required Packages (as shown on the screenshot). ---------------------------------------------------------------------- arneolav · 2016-11-20 21:25 Thanks, but it did no change. As mentined I'v done a clean install of Lazarus 1.6.2  and downloaded a new copy of RichMemo5360 I tried  RichMemo4405 as I did use Lazarus 1.6RC2, same result. The file propedits.ppu exists in Components...i386-win32\win32. I'v been away from Lazarus more than half a year, may be i'v foregotten something? ---------------------------------------------------------------------- skalogryz · 2016-11-20 22:11 Note warnging checksum changed! What are your project settings? Also try a blank project ---------------------------------------------------------------------- arneolav · 2016-11-21 17:22 Hi! Project settings are default. I done a new uninstall of Lazarus, and a new download and new install. Downloaded RichMemo 5371   (seems a new version.) RichMemo was installed ok. Thanks!