Lisp HUG Maillist Archive

Getting contents of capi:rich-text-pane without a file

Hello lispworkers,

Is it possible to read the whole text in RTF format just in memory?

I mean something like the capi:rich-text-pane-text accessor but returning a
string with RTF markup instead of a plain text.

The similar property of  the RichTextBox control is named "TextRTF" in
Visual Basic.

The workaround could be for
  (capi:rich-text-pane-operation :save-file filename) and
  (capi:rich-text-pane-operation :load-file filename) calls
to accept a stream as the filename argument. But that seems not to be the
case.
--
Sincerely,
Dmitry Ivanov
lisp.ystok.ru

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: Getting contents of capi:rich-text-pane without a file

Hello lispworkers,

Moreover, I find the capi:rich-text-version function rather useless as it
always return :RICH-EDIT-2.0 even if the Rich Text Edit Control v3.0 is
installed in my Windows. 
(BTW, its library file is named system32\riched20.dll - MS misnomer.)

Tested in LWW 6.1.
--
Sincerely,
Dmitry Ivanov
lisp.ystok.ru

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Updated at: 2020-12-10 08:31 UTC