Page 1 of 2

TRichView in Android

Posted: Wed Oct 21, 2020 4:30 pm
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?

Re: TRichView in Android

Posted: Thu Oct 22, 2020 8:13 am
by Sergey Tkachenko
Sorry, Andriod version will be implemented not soon. Definitely not in 2021.

Re: TRichView in Android

Posted: Wed Sep 08, 2021 8:28 pm
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?

Re: TRichView in Android

Posted: Wed Sep 08, 2021 9:34 pm
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

Re: TRichView in Android

Posted: Thu Sep 09, 2021 6:23 am
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.

Re: TRichView in Android

Posted: Thu Sep 09, 2021 3:14 pm
by jgkoehn
Greetings,
I am trying it in Delphi 10.4

Re: TRichView in Android

Posted: Thu Sep 09, 2021 4:32 pm
by jgkoehn
Greetings Sergey,
I see System.UITypes is this where it should be?

Re: TRichView in Android

Posted: Thu Sep 09, 2021 4:33 pm
by jgkoehn
or FMX.Types?

Re: TRichView in Android

Posted: Thu Sep 09, 2021 4:36 pm
by jgkoehn
Ah I see it hmms ok

Re: TRichView in Android

Posted: Thu Sep 09, 2021 7:11 pm
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?

Re: TRichView in Android

Posted: Thu Sep 09, 2021 7:18 pm
by jgkoehn
Finally got it RichView to Load but if I add a Style it does not work.

Re: TRichView in Android

Posted: Thu Sep 09, 2021 8:21 pm
by jgkoehn
I am sorry I forgot to specify that I am using RichViewEdit 19.4 this is the latest correct?

Re: TRichView in Android

Posted: Fri Sep 10, 2021 6:04 am
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.

Re: TRichView in Android

Posted: Fri Sep 10, 2021 4:17 pm
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

Re: TRichView in Android

Posted: Fri Sep 10, 2021 6:14 pm
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)