Platforms to show: All Mac Windows Linux Cross-Platform
WindowsClipboardMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Windows | MBS Win Plugin | 10.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Notes:
Use it to access the clipboard on Windows.
Be aware that in the constructor we open the clipboard connection. Since Xojo may itself like to look into the clipboard to decide whether to enable copy & paste events, our clipboard connection may get taken or times out. Only one app at a time can have clipboard access.
- property Valid as Boolean
- 14 methods
- method Clear
- method ClipboardFormats as Integer()
- method Constructor
- method CountClipboardFormats as Integer
- method Destructor
- method EnumClipboardFormats(format as Integer = 0) as Integer
- method GetData(type as Integer) as string
- method GetDIB as Picture
- method GetFiles as string()
- method GetPicture as Picture
- method SetData(type as Integer, rawData as string) as boolean
- method SetDIB(pic as Picture) as boolean
- method SetFiles(paths() as string) as boolean
- method SetPicture(pic as Picture) as boolean
- 4 shared methods
- shared method ClipboardSequenceNumber as Integer
- shared method GetClipboardFormatName(format as Integer) as string
- shared method IsClipboardFormatAvailable(type as Integer) as boolean
- shared method RegisterClipboardFormat(type as string) as Integer
- 17 constants
- const kTypeBitmap = 2
- const kTypeDIB = 8
- const kTypeDIBV5 = 17
- const kTypeDIF = 5
- const kTypeENHMetaFile = 14
- const kTypeHDROP = 15
- const kTypeLocale = 16
- const kTypeMetaFilePict = 3
- const kTypeOEMText = 7
- const kTypePalette = 9
- const kTypePenData = 10
- const kTypeRIFF = 11
- const kTypeSylk = 4
- const kTypeText = 1
- const kTypeTIFF = 6
- const kTypeUnicodeText = 13
- const kTypeWAVE = 12
This class has no sub classes.
Some examples using this class:
- /MacCocoa/ClipboardSaver
- /Win/Clipboard/Clipboard Files
- /Win/Clipboard/ClipboardSaver
- /Win/Clipboard/Picture on Clipboard
Blog Entries
- MonkeyBread Software Releases the MBS Xojo Plugins in version 17.4
- MBS Xojo Plugins, version 17.4pr5
- MBS Xojo Plugins, version 17.4pr3
- Windows, Xojo and the Clipboard
- MBS Xojo / Real Studio Plugins, version 16.5pr4
- MBS Xojo / Real Studio Plugins, version 15.1pr7
- [ANN] MonkeyBread Software Releases the MBS Xojo / Real Studio plug-ins in version 14.4
- New MBS REALbasic Plugin Version 10.4
- MBS REALbasic Plugins Version 10.4 release notes
- Teaser: Clipboard classes
Xojo Developer Magazine
Videos
The items on this page are in the following plugins: MBS Win Plugin.
WindowsBurnMBS - WindowsConsoleMBS
