EditorGadget() clears the clipboard when the program ends

Just starting out? Need help? Post your questions and find answers here.
User avatar
Piero
Addict
Addict
Posts: 870
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

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

Post 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
User avatar
RalfP
New User
New User
Posts: 4
Joined: Wed Apr 23, 2025 12:19 pm
Location: Northern Germany

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

Post 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
User avatar
Piero
Addict
Addict
Posts: 870
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

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

Post 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)
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

Well you shouldn't work on an outdated Windows unless it's an isolated computed (ie: never connected to internet).
User avatar
RalfP
New User
New User
Posts: 4
Joined: Wed Apr 23, 2025 12:19 pm
Location: Northern Germany

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

Post 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.
miso
Enthusiast
Enthusiast
Posts: 410
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

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

Post 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.
User avatar
Piero
Addict
Addict
Posts: 870
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

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

Post 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
Quin
Addict
Addict
Posts: 1131
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

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

Post 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 :)
User avatar
Piero
Addict
Addict
Posts: 870
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

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

Post 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:
Post Reply