|
김유미 님이 쓰신 글 :
: MDI Form에서
: 맨위에
: TLabel *Label[5];
: 를 선언하고
:
: void __fastcall TfmDivision::Button1Click(TObject *Sender)
: {
: int y = 5;
:
: for(int nPos=0; nPos<4; nPos++)
: {
: Label[nPos] = new TLabel(Application);
: Label[nPos]->Parent = fmDivision;
: Label[nPos]->Layout = tlTop;
: Label[nPos]->AutoSize = false;
: Label[nPos]->Layout = tlCenter;
: Label[nPos]->Height = 18;
: Label[nPos]->Width = 21;
: // Label[nPos]->Top = 36 + y * (Label[nPos]->Height + 1);
: Label[nPos]->Top = 36 + y * (Label[nPos]->Height);
: Label[nPos]->Left = 10 + nPos * 100;
: Label[nPos]->Alignment = taRightJustify;
: Label[nPos]->Transparent = true;
: Label[nPos]->Caption = nPos;
: }
:
: }
: 게 했는데
: 0 1 2 3 이 안나오거든요
: 그냥 Normail 로 하면 보여요
: 어떻게 하면 되는지좀 가르쳐주세요
Visible -> true 인지 확인해보세요 ^^;.
|