MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / SavePosition

Function SavePosition

sourcecommon/utils.cpp:763–789  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

761}
762//---------------------------------------------------------------------------
763void 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//---------------------------------------------------------------------------
791void SavePosition(TForm * f, double * param, int count)
792{

Callers

nothing calls this directly

Calls 4

SaveFormPositionFunction · 0.85
WriteIntegerMethod · 0.45
WriteFloatMethod · 0.45
WriteStringMethod · 0.45

Tested by

no test coverage detected