---------------------------------------------------------------------------
| 1458 | } |
| 1459 | //--------------------------------------------------------------------------- |
| 1460 | void 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 | //--------------------------------------------------------------------------- |
| 1475 | void TreeToClipboard(TTreeView * p) |
| 1476 | { |
nothing calls this directly
no test coverage detected