[08 May 2010] Bug in ClearClipboard()?

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

[08 May 2010] Bug in ClearClipboard()?

Post 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()?
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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.
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

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

Post 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).
Locked