Pasting in editor

Working on new editor enhancements?
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Pasting in editor

Post 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.
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

That was an interesting statement :)
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post 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
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post 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...
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

O btw, i see the word wizard near your name???

:)
Post Reply