// Write some text to the clipboard
if (wxTheClipboard->Open())
{
- // This data objects are held by the clipboard,
+ // This data objects are held by the clipboard,
// so do not delete them in the app.
wxTheClipboard->SetData( new wxTextDataObject("Some text") );
wxTheClipboard->Close();
wxTextDataObject data;
wxTheClipboard->GetData( data );
wxMessageBox( data.GetText() );
- }
+ }
wxTheClipboard->Close();
}
@endcode
normal clipboard contents with the currently selected text on the other
platforms.
*/
- void UsePrimarySelection(bool primary = true);
+ virtual void UsePrimarySelection(bool primary = false);
};