|
int tmpWidth ;
int tmpHeight;
void __fastcall TForm1::FormCreate(TObject *Sender)
{
tmpWidth = Width;
tmpHeight = Height ;
}
void __fastcall TForm1::FormResize(TObject *Sender)
{
if (Form1->Width != tmpWidth || Form1->Height != tmpHeight)
{
ScaleControls(Width, tmpWidth);
tmpWidth = Width;
ScaleControls(Height, tmpHeight);
tmpHeight = Height;
}
}
위처럼 아주 간단히 코딩해서 -.- 폼의크기변경이 일어나면
그 안에 있는 컴포넌트들도 크기가 변경되게 했는데요(위치는 변하면 안되요)
위처럼 하면 매끄럽지 못해요.
대체 어디가 문제인가요??
에고... 키보드 천타치고 허리한번펴기네요 -.-
|