Page 1 of 1

[08 May 2010] Bug in ClearClipboard()?

Posted: Sat Jun 13, 2020 5:32 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 08 May 2010 19:45:12 -0000

After calling ClearClipboard(), PeekClipboard() and GetClipboard() return #CLIPBOARD_TEXT (as type) and GetClipboard() also returns " " (as data).

Shouldn't #CLIPBOARD_EMPTY be returned after using ClearClipboard()?

[10 May 2010] Re: Bug in ClearClipboard()?

Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 10 May 2010 11:11:51 +0200
After calling ClearClipboard(), PeekClipboard() and GetClipboard() return #CLIPBOARD_TEXT (as type) and GetClipboard() also returns " " (as data).

Shouldn't #CLIPBOARD_EMPTY be returned after using ClearClipboard()?
The problem is that AmigaOS' API doesn't provide a clearing functionality for the clipboard. As a workaround, Hollywood simply puts an empty text string into it.

[10 May 2010] Re: Bug in ClearClipboard()?

Posted: Sat Jun 13, 2020 5:32 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 10 May 2010 14:18:01 -0000

Thanks for the explanation. Though the text string that Hollywood puts in the clipboard (to empty it) is not completely empty (there is a space)---it inserts " " instead of "" (Nil).