Recent

Author Topic: lzRichEdit did not install in 1.6  (Read 18536 times)

Pancetto

  • Newbie
  • Posts: 5
Re: lzRichEdit did not install in 1.6
« Reply #15 on: February 28, 2016, 04:44:08 pm »
Other 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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: lzRichEdit did not install in 1.6
« Reply #16 on: February 29, 2016, 01:51:49 am »
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?
ok, let me see...

What exactly doesn't work?

Here's a simple test I'm using
Code: Pascal  [Select][+][-]
  1. uses
  2.   ..., RichMemo, RichMemoHelpers;
  3.  
  4. type
  5.   TForm1 = class(TForm)
  6.     Button1: TButton;
  7.     RichMemo1: TRichMemo;
  8.     procedure Button1Click(Sender: TObject);
  9.   private
  10.     { private declarations }
  11.   public
  12.     { public declarations }
  13.   end;
  14. ...
  15. procedure TForm1.Button1Click(Sender: TObject);
  16. begin
  17.   RichMemo1.SelAttributes.Color:=clRed;
  18. end;
  19.  
The selected text turns red as expect.
« Last Edit: February 29, 2016, 05:25:56 am by skalogryz »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: lzRichEdit did not install in 1.6
« Reply #17 on: February 29, 2016, 05:49:01 am »
I see the problem with styles assignment.

has been fixed with r4526.

Pancetto

  • Newbie
  • Posts: 5
Re: lzRichEdit did not install in 1.6
« Reply #18 on: February 29, 2016, 08:07:39 am »
I 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!

« Last Edit: February 29, 2016, 03:30:22 pm by Pancetto »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: lzRichEdit did not install in 1.6
« Reply #19 on: February 29, 2016, 06:02:51 pm »
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):
...
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.
« Last Edit: February 29, 2016, 08:51:12 pm by skalogryz »

Pancetto

  • Newbie
  • Posts: 5
Re: lzRichEdit did not install in 1.6
« Reply #20 on: February 29, 2016, 10:40:20 pm »
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):
...
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.
« Last Edit: March 01, 2016, 06:18:35 am by Pancetto »

mac01

  • New Member
  • *
  • Posts: 15
Re: lzRichEdit did not install in 1.6
« Reply #21 on: November 15, 2016, 12:10:28 am »
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

  • Full Member
  • ***
  • Posts: 195
    • ElTranslador
Re: lzRichEdit did not install in 1.6
« Reply #22 on: November 18, 2016, 10:13:13 pm »
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.

« Last Edit: November 18, 2016, 10:15:22 pm by arneolav »
Win XP, Win7, Win 10, Win 11, win64 , Lazarus 3.0RC1
Delphi/DevExpress

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: lzRichEdit did not install in 1.6
« Reply #23 on: November 19, 2016, 01:22:49 am »
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

  • Full Member
  • ***
  • Posts: 195
    • ElTranslador
Re: lzRichEdit did not install in 1.6
« Reply #24 on: November 20, 2016, 10:25:05 pm »
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?

Win XP, Win7, Win 10, Win 11, win64 , Lazarus 3.0RC1
Delphi/DevExpress

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: lzRichEdit did not install in 1.6
« Reply #25 on: November 20, 2016, 11:11:01 pm »
Note warnging checksum changed!

What are your project settings?

Also try a blank project

arneolav

  • Full Member
  • ***
  • Posts: 195
    • ElTranslador
Re: lzRichEdit did not install in 1.6
« Reply #26 on: November 21, 2016, 06:22:31 pm »
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!
 
Win XP, Win7, Win 10, Win 11, win64 , Lazarus 3.0RC1
Delphi/DevExpress

 

TinyPortal © 2005-2018