Contents Up Previous Next

wxClipboardClient: wxObject

Implemented under X and MS Windows, a clipboard client holds data belonging to the clipboard. For plain text, a client is not necessary.

wxClipboardClient is an abstract class for which the virtual functions BeingReplaced and GetData must be overridden.

See also wxClipboard, wxInitClipboard.

wxClipboardClient::formats
wxClipboardClient::BeingReplaced
wxClipboardClient::GetData


wxClipboardClient::formats

wxStringList formats

This list should be filled in with strings indicating the formats this client can provide. Almost all clients will provide"TEXT". Format names should be 4 characters long, so things will work out on the Macintosh.


wxClipboardClient::BeingReplaced

void BeingReplaced(void)

This method is called when the client is losing the selection.


wxClipboardClient::GetData

char * GetData(char *format, long *size)

This method is called when someone wants the data this client is supplying to the clipboard.

format is a string indicating the format of the data - one of the strings from the "formats" list.

size should be filled with the size of the resulting data. In the case of text, size does not count the NULL terminator.