---------------------------------------------------------------------------
| 1473 | } |
| 1474 | //--------------------------------------------------------------------------- |
| 1475 | void 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 | //--------------------------------------------------------------------------- |
| 1490 | void StringsToClipboard(TStrings * p) |
| 1491 | { |
nothing calls this directly
no test coverage detected