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

Function TreeToClipboard

sourcecommon/utils.cpp:1475–1488  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1473}
1474//---------------------------------------------------------------------------
1475void TreeToClipboard(TTreeView * p)
1476{
1477 String str;
1478 TTreeNode * n;
1479 for(int i=0; i<p->Items->Count; i++)
1480 {
1481 n = p->Items->Item[i];
1482 for(int j=0; j<n->Level; j++)
1483 str += "\t";
1484 str += n->Text + "\r\n";
1485 }
1486 //Clipboard()->SetTextBuf(str.c_str()); don't work in CodeGear 2007
1487 setClipboard(str);
1488}
1489//---------------------------------------------------------------------------
1490void StringsToClipboard(TStrings * p)
1491{

Callers

nothing calls this directly

Calls 1

setClipboardFunction · 0.85

Tested by

no test coverage detected