C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[38359] Re:폼 동적 생성
이현진 [cyberpd] 1053 읽음    2004-12-13 08:32

이성제 님이 쓰신 글 :
: 소스가 이렇게 있는데요
: void __fastcall TForm1::Button(TObject *Sender)
: {
:     TButton *btn = (TButton*)Sender;
:     TForm *frm = (TForm*)btn->Parent;
:     frm->Tile();
:     frm->Close();
: }
:
: 이부분에 소스를 이해할수가 없습니다.
:
: 으흠..
:
: Tile() 이 하는 일이 뭔지..
:
: 아 아무튼 전혀 이해할수가 없습니다.
:
: 설명좀 해주세욥!!

Tile은 MDI 폼에서 생성된 자식 윈도우들의 위치를 정렬하는 것입니다.

Arranges MDI child forms so that they are all the same size.

void __fastcall Tile(void);

Description
Use Tile to arrange MDI child forms so that they are all the same size. Tiled forms completely fill up the client area of the parent form. How the forms arrange themselves depends upon the values of their TileMode properties.
Tile works only if the form is an MDI parent form (that is, if the form뭩 FormStyle property is fsMDIForm).

위의 코드에서는 저 메서드가 특별한 다른일은 안하네요. 주석처리 하셔도 결과는 같습니다.

아래 처럼 바꾸면 Form1 창 안에서 새로운 창들이 동적 생성 됩니다.
TForm1.FormStyle=fsMDIForm;
f->FormStyle=fsMDIChild;


+ -

관련 글 리스트
38354 폼 동적 생성 이성제 843 2004/12/12
38360     Re:폼 동적 생성 수야!╋ 1039 2004/12/13
38359     Re:폼 동적 생성 이현진 1053 2004/12/13
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.