RichViewEdit.GetTextLen always "0"
Posted: Sun Nov 12, 2006 5:30 pm
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
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