---------------------------------------------------------------------------
| 667 | extern char szPositionFile[]; |
| 668 | //--------------------------------------------------------------------------- |
| 669 | void LoadFormPosition(TMYIniFile * p, TForm * f) |
| 670 | { |
| 671 | try |
| 672 | { |
| 673 | int l = p->ReadInteger(AnsiString(f->Name).c_str(), "Left", -10000); |
| 674 | int t = p->ReadInteger(AnsiString(f->Name).c_str(), "Top", -10000); |
| 675 | int w = p->ReadInteger(AnsiString(f->Name).c_str(), "Width", -10000); |
| 676 | int h = p->ReadInteger(AnsiString(f->Name).c_str(), "Height", -10000); |
| 677 | if( CorrectFormRect(l, t, w, h) ) f->SetBounds(l, t, w, h); |
| 678 | } |
| 679 | catch(...) {} |
| 680 | } |
| 681 | //--------------------------------------------------------------------------- |
| 682 | void SaveFormPosition(TMYIniFile * p, TForm * f) |
| 683 | { |
no test coverage detected