RichText Problem
D5Ent , Rb 6.03
Use tppRichEdit seens have many problem & unstable in enter chinese
Character. it always have 'invalid pointer operation' error and cause whole
window hang.
and after i use below statement to force use delphi 'trichedit'.Those error
gone. and i want to know
is any problem which use delphi trichtext instead of tpprichedit?
initialization
ppRegisterRichEditClass( tRichEdit );
finalization
ppUnRegisterRichEditClass( tRichEdit );
Use tppRichEdit seens have many problem & unstable in enter chinese
Character. it always have 'invalid pointer operation' error and cause whole
window hang.
and after i use below statement to force use delphi 'trichedit'.Those error
gone. and i want to know
is any problem which use delphi trichtext instead of tpprichedit?
initialization
ppRegisterRichEditClass( tRichEdit );
finalization
ppUnRegisterRichEditClass( tRichEdit );
This discussion has been closed.
Comments
There are multiple versions of the RichEd dll. Our code tries to load the
newer RichEd20.dll. If you have both versions on your machine, then perhaps
TRichEdit is using the older RichEd.dll, which works for you.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
is that correct ?
initialization
ppRegisterRichEditClass( tRichEdit );
finalization
ppUnRegisterRichEditClass( tRichEdit );
like this and it works fine.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
But can I remind DM that despite the fact that "... TppRichEdit relies on
TRichEdit...", I have experienced strange difference between what characters
TRichEdit happily displays and the way that TppRichEdit works. Remember Jim
I had a dialog (in newsgroup) with you about vanishing Chr 173, just before
Xmas.
I have never got to the bottom of what is happening here, why TppRichEdit is
not like TRichEdit, why one character is not displayed. It is not the DLL,
but I suspect it could be do to with language settings, and this Chinese
character problem could be related??
Sarah
of the RichEd.dll. If registering TRichEdit for RB reports works better for
the Chinese characters, then that is a workaround until we figure out why a
TppRichEdit won't work when it tries to use the more recent RichEd20.dll.
The newer RichEd20dll may be loaded by using the TppRichEdit. It is possible
that both dlls may be residing on a machine, and explains the different
behavior given by registering one class or the other. Look in
RBuilder\Source\ppDrwCmd.pas in the method:
procedure TppRichEdit.CreateParams(var Params: TCreateParams);
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com