---------------------------------------------------------------------------
| 214 | } |
| 215 | //--------------------------------------------------------------------------- |
| 216 | bool TMyFont::Save(TMYIniFile * f, char * Section) |
| 217 | { |
| 218 | bool bRetVal = true; |
| 219 | try |
| 220 | { |
| 221 | f->WriteString(Section, "FontName", Name); |
| 222 | f->WriteInteger(Section, "FontHeight", Height); |
| 223 | f->WriteInteger(Section, "FontPitch", Pitch); |
| 224 | f->WriteInteger(Section, "FontPixelsPerInch", PixelsPerInch); |
| 225 | f->WriteInteger(Section, "FontSize", Size); |
| 226 | f->WriteInteger(Section, "FontStyle", Style); |
| 227 | f->WriteInteger(Section, "FontColor", Color); |
| 228 | } |
| 229 | catch(...) { bRetVal = false; } |
| 230 | return bRetVal; |
| 231 | } |
| 232 | //--------------------------------------------------------------------------- |
| 233 | bool DeleteDirectory(char * szPath, bool bDelTopDir) |
| 234 | { |
no test coverage detected