Page 2 of 2

Re: EditorGadget() clears the clipboard when the program ends

Posted: Mon May 05, 2025 8:07 pm
by Piero
Here it loses CF_TEXT and EnterpriseDataProtectionId on program exit…

(and as I said it works ONLY by using ctrl-C ctrl-V)

Freeware:

Image

Re: EditorGadget() clears the clipboard when the program ends

Posted: Tue May 06, 2025 1:57 am
by RalfP
Thanks for testing.

The Rich Text Editor control only returns the CF_OEMTEXT format to the clipboard, and some programs can't handle this when pasting.
So this is an incompatibility between the Rich Text Editor control and the other programs (e.g., Notepad) and not a PureBasic bug.

I'll use the workaround shown in the test program.

Regards,
Ralf

Re: EditorGadget() clears the clipboard when the program ends

Posted: Tue May 06, 2025 5:27 am
by Piero
Did anyone who had NO problems pasting on notepad (ctrl-V after closing the executable) try using the right-click menu?

(I deactivated shared clipboard on VM and nothing changed)

Re: EditorGadget() clears the clipboard when the program ends

Posted: Tue May 06, 2025 9:09 am
by Fred
Well you shouldn't work on an outdated Windows unless it's an isolated computed (ie: never connected to internet).

Re: EditorGadget() clears the clipboard when the program ends

Posted: Tue May 06, 2025 10:36 am
by RalfP
I don't do anything illegal on the internet with my computer, but I still don't want to be equipped with a unique global license plate (TPM).

And I'm still not quite satisfied with Linux as my main operating system.

But I know I have to do something soon.

Re: EditorGadget() clears the clipboard when the program ends

Posted: Tue May 06, 2025 10:39 am
by miso
While I totally agree with Fred, my last days with windows comes when win7 becomes totally unusable. I have offline machines separated.
I'm eying with Linux Cinnamon, mainly based on the forum members opinion here.

Re: EditorGadget() clears the clipboard when the program ends

Posted: Tue May 06, 2025 12:30 pm
by Piero
Fred wrote: Tue May 06, 2025 9:09 amWell you shouldn't work on an outdated Windows unless it's an isolated computed (ie: never connected to internet).
You're not 100% right Fred; I'm considering to revert back to MacOS 8.6 (it was really great) but I fear for my firmware to be compromised anyway

Re: EditorGadget() clears the clipboard when the program ends

Posted: Tue May 06, 2025 1:33 pm
by Quin
RalfP wrote: Tue May 06, 2025 10:36 am I don't do anything illegal on the internet with my computer, but I still don't want to be equipped with a unique global license plate (TPM).

And I'm still not quite satisfied with Linux as my main operating system.

But I know I have to do something soon.
What about windows IoT LTSC? I'm running Windows 10 without the store, and I'll get updates until 2032 :)

Re: EditorGadget() clears the clipboard when the program ends

Posted: Tue May 06, 2025 2:15 pm
by Piero
Quin wrote: Tue May 06, 2025 1:33 pmWhat about windows IoT LTSC? I'm running Windows 10 without the store, and I'll get updates until 2032 :)
OMG Quin, are you saying that my crystalfetch windows is about to expire and I will never be able to use it again?
THANKS!
:mrgreen: :mrgreen: :mrgreen: