|
화면에 버튼을 약 300개를 배열해 놨는데
폼을 리사이즈를 하면 버튼의 크기와 위치를 수정하게끔 했는데
리사이즈 할때마다 화면이 버벅댄다고 할까요.. 느리게 재구성 된다고 할까요..
버튼수가 많아서 이러는건지^^;;
int reHeight = 0;
int reTop = 0;
reHeight = ((GroupBox1->Height-5) / 32) + 1;
for(i=0;i<=31;i++)
{
selFirst[i]->Width = 46;
selFirst[i]->Height = reHeight;
selFirst[i]->Left = 8;
reTop = 117 + (i * selFirst[i]->Height) - i;
selFirst[i]->Top = reTop;
selSecond[i]->Width = 46;
selSecond[i]->Height = reHeight;
selSecond[i]->Left = 52;
selSecond[i]->Top = reTop;
numInput[i]->Width = 36;
numInput[i]->Height = reHeight;
numInput[i]->Left = 105;
numInput[i]->Top = reTop;
camName[i]->Width = (Shape5->Width /2) - 79;
camName[i]->Height = reHeight;
camName[i]->Left = 134;
camName[i]->Top = reTop;
selA[i]->Width = 40;
selA[i]->Height = reHeight;
selA[i]->Left = camName[i]->Width + 132;
selA[i]->Top = reTop;;
selB[i]->Width = 40;
selB[i]->Height = reHeight;
selB[i]->Left = selA[i]->Left + 38;
selB[i]->Top = reTop;
요런식으로 했습니다.
|