Hi,
the Standard-RichEdit is ok! The result is to example "20".
MaxLen:=RichEdit.GetTextLen;
With RichViewEdit is the result always "0".
MaxLen:=RichViewEdit.GetTextLen;
How can I get length of the total text in the RichViewEdit?
Another question:
Why do I get "0" forever also with this function?
...
TextLenEx.flags := GTL_DEFAULT;
TextLenEx.codepage := CP_UTF8;
MaxLen:=SendMessage(RichViewEdit.Handle, EM_GETTEXTLENGTHEX, Integer(@TextLenEx), 0);
...
Crowbar
RichViewEdit.GetTextLen always "0"
-
- Site Admin
- Posts: 17560
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
GetTextLen simple uses WM_GETTEXTLENGTH message.
Processing of WM_GETTEXT, WM_GETTEXTLENGTH, WM_SETTEXT was disabled for Delphi 2005 and 2006, because it conflicted with VCL implementation. Sorry, I do not plan to restore them.
EM_GETTEXTLENGTHEX is not supported.
Use the functions RVGetTextRange and RVGetTextLength from RVLinear.pas.
Processing of WM_GETTEXT, WM_GETTEXTLENGTH, WM_SETTEXT was disabled for Delphi 2005 and 2006, because it conflicted with VCL implementation. Sorry, I do not plan to restore them.
EM_GETTEXTLENGTHEX is not supported.
Use the functions RVGetTextRange and RVGetTextLength from RVLinear.pas.