Objective Grid: Clipboard formats

Article ID: 709
Last updated: 11 Jun, 2018
Article ID: 709
Last updated: 11 Jun, 2018
Revision: 3
Views: 3569
Posted: 23 Jan, 2001
by Meltreger B.
Updated: 11 Jun, 2018
by Meltreger B.

Problem


Which clipboard formats are supported?


Cause



Action


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.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 709
Last updated: 11 Jun, 2018
Revision: 3
Views: 3569
Posted: 23 Jan, 2001 by Meltreger B.
Updated: 11 Jun, 2018 by Meltreger B.

Others in this category