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
The windows clipboard class.

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.

Constants

Constant Value Description
kTypeBitmap 2 One of standard clipboard formats defined by the system. A handle to a bitmap (HBITMAP).
kTypeDIB 8 One of standard clipboard formats defined by the system. A memory object containing a BITMAPINFO structure followed by the bitmap bits.
kTypeDIBV5 17 One of standard clipboard formats defined by the system. A memory object containing a BITMAPV5HEADER structure followed by the bitmap color space information and the bitmap bits.
kTypeDIF 5 One of standard clipboard formats defined by the system. Software Arts' Data Interchange Format.
kTypeENHMetaFile 14 One of standard clipboard formats defined by the system. A handle to an enhanced metafile (HENHMETAFILE).
kTypeHDROP 15 One of standard clipboard formats defined by the system. A handle to type HDROP that identifies a list of files. An application can retrieve information about the files by passing the handle to the DragQueryFile function.
kTypeLocale 16 One of standard clipboard formats defined by the system. The data is a handle to the locale identifier associated with text in the clipboard. When you close the clipboard, if it contains kTypeText data but no kTypeLocale data, the system automatically sets the kTypeLocale format to the current input language. You can use the kTypeLocale format to associate a different locale with the clipboard text. more
kTypeMetaFilePict 3 One of standard clipboard formats defined by the system. Handle to a metafile picture format as defined by the METAFILEPICT structure. When passing a kTypeMetaFilePict handle by means of DDE, the application responsible for deleting hMem should also free the metafile referred to by the kTypeMetaFilePict handle.
kTypeOEMText 7 One of standard clipboard formats defined by the system. Text format containing characters in the OEM character set. Each line ends with a carriage return/linefeed (CR-LF) combination. A null character signals the end of the data.
kTypePalette 9 One of standard clipboard formats defined by the system. Handle to a color palette. Whenever an application places data in the clipboard that depends on or assumes a color palette, it should place the palette on the clipboard as well. more
kTypePenData 10 One of standard clipboard formats defined by the system. Data for the pen extensions to the Microsoft Windows for Pen Computing
kTypeRIFF 11 One of standard clipboard formats defined by the system. Represents audio data more complex than can be represented in a CF_WAVE standard wave format.
kTypeSylk 4 One of standard clipboard formats defined by the system. Microsoft Symbolic Link (SYLK) format.
kTypeText 1 One of standard clipboard formats defined by the system. Text format. Each line ends with a carriage return/linefeed (CR-LF) combination. A null character signals the end of the data. Use this format for ANSI text.
kTypeTIFF 6 One of standard clipboard formats defined by the system. Tagged-image file format.
kTypeUnicodeText 13 One of standard clipboard formats defined by the system. Unicode text format. Each line ends with a carriage return/linefeed (CR-LF) combination. A null character signals the end of the data.
kTypeWAVE 12 One of standard clipboard formats defined by the system. Represents audio data in one of the standard wave formats, such as 11 kHz or 22 kHz PCM.

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Videos

Release notes


The items on this page are in the following plugins: MBS Win Plugin.


WindowsBurnMBS   -   WindowsConsoleMBS


The biggest plugin in space...