Page 1 of 1

Pasting in editor

Posted: Fri Nov 28, 2003 10:06 am
by Edwin Knoppert
I have seen this topic before but i wanted to mention it again.

Copying from RTF to the editor results in formatted text.
(I even believe copying from the help)

This is *easy* to circumvent.
On WM_PAST obtain the clipboard as plain text and cancel WM_PASTE.
Stream in (insert stream) the plain text is easy.

Posted: Sat Nov 29, 2003 9:22 pm
by Edwin Knoppert
That was an interesting statement :)

Posted: Sat Nov 29, 2003 9:59 pm
by blueznl
you might want to translate that into a kind of language (with lots of grunts and duh's and many short words) that people (those that program in purebasic, that is) with their higher brainfunctions partially disabled (read: me) can understand... 8O

Posted: Sun Nov 30, 2003 12:14 am
by Edwin Knoppert
LOL !

It's a simple matter to Fred i guess, and mentioned to the developer of the editor.

:)
If you set RTF to a richedit control, it's common practise to stream it in.

Not simply setting via WM_SETTEXT.
Stream can also insert, therefore...

Posted: Sun Nov 30, 2003 12:15 am
by Edwin Knoppert
O btw, i see the word wizard near your name???

:)