|| | |||Browse by category|
Which clipboard formats are supported?
Objective Grid supports CF_TEXT, CF_UNICODETEXT and CF_OEMTEXT for exchange with foreign applications and an internal clipboard format that allows you to copy/paste all formatting of a cell. The CGXRichEditCtrl also supports the CF_RTF format. You can specify the clipboard behavior through the m_nClipboardFlags attribute. See CGXGridCore::m_nClipboardFlags how to include/exclude header cells, copy/paste data only in CF_TEXT format and more.
Objective Grid lets you add additional clipboard formats. You can override the OnPasteFromClipboard(), CheckClipboardFormat() and Copy() methods to add support for additional clipboard formats. Furthermore, you can override the Copy(), Paste() handlers for individual controls. An example is the CGXRichEditCtrl. This control lets you copy/paste data with RTF format. CGXControl::Copy will be called only when only the current cell is selected and no other cells. CGXControl::Paste will be called before the grid tries to paste its own clipboard format.