04-14-2022, 05:18 AM
(04-12-2022, 10:11 AM)Rick Johnson Wrote: Here's how I get string data from the clipboard:
Code:hdi::core::ClipboardData cbData;
std::string str;
if (hdi::core::clipboardData(cbData)
&& cbData.dataType() == hdi::core::ClipboardData::DataTypeString){
str = cbData.stringData();
}
To put string data onto the clipboard:
Code:hdi::core::setClipboardData(str);
Maybe these techniques are not technically correct, but have been working well for me.
Confirmed!! This is working well for me. I am able to set this data and then also with some other work i have been able to set the data, pull data off of the clipboard, modify it, and then reattach it back to the clipboard without losing the integrity of the data.
Very happy and thanks for your help!!