TRichView in Android

General TRichView support forum. Please post your questions here
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

TRichView in Android

Post by jgkoehn »

I know this may be an obvious question. But if one wanted to use TRichView in an Android enviroment via something like Lazarus or Delphi 10 would it be possible? (The software we work with is based around TRichView in Windows and it would be great to port it to Android, IOs, MAC, Linux).

If this has been address some place else can you direct me there?
Sergey Tkachenko
Site Admin
Posts: 17571
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: TRichView in Android

Post by Sergey Tkachenko »

Sorry, Andriod version will be implemented not soon. Definitely not in 2021.
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: TRichView in Android

Post by jgkoehn »

Greetings Sergey,
Nice to see the FMX coming out excellent work sir!
I understand Android version is not ready yet but here are a couple notes.
When I try to compile Android 32 or 64bit I get the following errors.
[DCC Error] fmxRVEdit.pas(379): E2003 Undeclared identifier: 'TRect'
[DCC Fatal Error] fmxRVTable.pas(678): F2063 Could not compile used unit 'fmxRVDataList.pas'

Ideas on how to solve these or is this quite a ways off yet?
standay
Posts: 274
Joined: Fri Jun 18, 2021 3:07 pm

Re: TRichView in Android

Post by standay »

jgkoehn wrote: Wed Sep 08, 2021 8:28 pm Greetings Sergey,
Nice to see the FMX coming out excellent work sir!
I understand Android version is not ready yet but here are a couple notes.
When I try to compile Android 32 or 64bit I get the following errors.
[DCC Error] fmxRVEdit.pas(379): E2003 Undeclared identifier: 'TRect'
[DCC Fatal Error] fmxRVTable.pas(678): F2063 Could not compile used unit 'fmxRVDataList.pas'

Ideas on how to solve these or is this quite a ways off yet?
I'm not 100% sure, but calls to TRect might have been changed to TRVCoordRect. You can still use it but you may have to cast your var in code to that. Sergey will have the answer though!

Stan
Sergey Tkachenko
Site Admin
Posts: 17571
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: TRichView in Android

Post by Sergey Tkachenko »

There are some cases where TRect is still used.

What version of Delphi do you use?
TRect must be defined in System.Types.pas, and this unit is included in "uses" of fmxRVEdit.
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: TRichView in Android

Post by jgkoehn »

Greetings,
I am trying it in Delphi 10.4
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: TRichView in Android

Post by jgkoehn »

Greetings Sergey,
I see System.UITypes is this where it should be?
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: TRichView in Android

Post by jgkoehn »

or FMX.Types?
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: TRichView in Android

Post by jgkoehn »

Ah I see it hmms ok
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: TRichView in Android

Post by jgkoehn »

When I get it to run I only get a black screen even if I just add a Style and RichView or RichViewEdit.
Has anyone got RichViewEdit or RichView to run with Android 10?
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: TRichView in Android

Post by jgkoehn »

Finally got it RichView to Load but if I add a Style it does not work.
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: TRichView in Android

Post by jgkoehn »

I am sorry I forgot to specify that I am using RichViewEdit 19.4 this is the latest correct?
Sergey Tkachenko
Site Admin
Posts: 17571
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: TRichView in Android

Post by Sergey Tkachenko »

Sorry, I plan to test and fix Android version later.
My current plans - Delphi 11 support, then Mac. Then either Linux or Android.
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: TRichView in Android

Post by jgkoehn »

Ah I understand many things to work on. Delphi 11 looks interesting.
If you have a small amount of time and can point me to ideas that I could look into getting Android running it would be appreciated. Thank you
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: TRichView in Android

Post by jgkoehn »

A small measure of progress from black screen.
I set the RVStyle using a button instead of on FormCreate. At least now in RichViewEdit1 I get "Error: Abscract Error"
AddNL seems to work though the Abstract Error is showing in the background.
InsertText doesn't seem to work hmms. (Maybe just a user error on my part)
Post Reply