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

Method GetVcl

sourcecommon/savepar.cpp:83–108  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

81}
82//---------------------------------------------------------------------------
83void TSaveParams::GetVcl(TForm * p)
84{
85 try
86 {
87 int l,t,w,h;
88 fCurrentSection = p->Name;
89 Variant v;
90 v = Get(fCurrentSection, "Left");
91 if( v.IsEmpty() ) return;
92 l = v;
93 v = Get(fCurrentSection, "Top");
94 if( v.IsEmpty() ) return;
95 t = v;
96 v = Get(fCurrentSection, "Width");
97 if( v.IsEmpty() ) return;
98 w = v;
99 v = Get(fCurrentSection, "Height");
100 if( v.IsEmpty() ) return;
101 h = v;
102
103 if( CorrectFormRect(l, t, w, h) )
104 p->SetBounds(l, t, w, h);
105 }
106 catch(...)
107 {}
108}
109//---------------------------------------------------------------------------
110// ���������� ��������� �����
111void TSaveParams::SetVclPos(TForm * p)

Callers

nothing calls this directly

Calls 1

CorrectFormRectFunction · 0.85

Tested by

no test coverage detected