---------------------------------------------------------------------------
| 761 | } |
| 762 | //--------------------------------------------------------------------------- |
| 763 | void SavePosition(TForm * f, int * param, int count) |
| 764 | { |
| 765 | TMYIniFile * p = NULL; |
| 766 | try |
| 767 | { |
| 768 | p = new TMYIniFile(szPositionFile); |
| 769 | SaveFormPosition(p, f); |
| 770 | /* |
| 771 | p->WriteInteger(f->Name.c_str(), "Left", f->Left); |
| 772 | p->WriteInteger(f->Name.c_str(), "Top", f->Top); |
| 773 | p->WriteInteger(f->Name.c_str(), "Width", f->Width); |
| 774 | p->WriteInteger(f->Name.c_str(), "Height", f->Height); |
| 775 | */ |
| 776 | // ����� �������������� ���������, ���� ���� |
| 777 | if( param && count>0 ) |
| 778 | { |
| 779 | char str[20]; |
| 780 | for(int i=0; i<count; i++) |
| 781 | { |
| 782 | wsprintf(str, "PARAM%d", i+1); |
| 783 | p->WriteInteger(AnsiString(f->Name).c_str(), str, param[i]); |
| 784 | } |
| 785 | } |
| 786 | } |
| 787 | catch(...) {} |
| 788 | delete p; |
| 789 | } |
| 790 | //--------------------------------------------------------------------------- |
| 791 | void SavePosition(TForm * f, double * param, int count) |
| 792 | { |
nothing calls this directly
no test coverage detected