MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / StringGridToClipboard

Function StringGridToClipboard

sourcecommon/utils.cpp:1460–1473  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1458}
1459//---------------------------------------------------------------------------
1460void StringGridToClipboard(TStringGrid * p)
1461{
1462 String str;
1463 for(int j=0; j<p->RowCount; j++)
1464 {
1465 for(int i=0; i<p->ColCount; i++)
1466 {
1467 str += p->Cells[i][j];
1468 str += (i==p->ColCount-1) ? "\r\n" : "\t";
1469 }
1470 }
1471 //Clipboard()->SetTextBuf(str.c_str()); don't work in CodeGear 2007
1472 setClipboard(str);
1473}
1474//---------------------------------------------------------------------------
1475void TreeToClipboard(TTreeView * p)
1476{

Callers

nothing calls this directly

Calls 1

setClipboardFunction · 0.85

Tested by

no test coverage detected