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
[71442] Re:직접만든 컴포넌트 Object Inspector 문제
송신영 [palindrome] 3048 읽음    2014-06-19 16:30
VCLEditors 에 있는 TBooleanProperty 를 사용해야하는 군요...

#include 

		PPropInfo PropInfo = GetPropInfo(__typeinfo(TMyShape), "Enabled");
		RegisterPropertyEditor(*(PropInfo->PropType), NULL, "", __classid(TBooleanProperty));





송신영 님이 쓰신 글 :
: 안녕하세요.
: 컴포넌트를 하나 만든 후 Form에 올려서 Object Inspector에서 속성 편집을 할 때 보면
: 아래 그림과 같이 bool 형일 경우 기존 컴포넌트는 앞에 체크박스가 표기되는데
: 직접 만든 컴포넌트에는 그냥 true, false를 선택할 수 만 있네요...
: 오른쪽 처럼 체크 박스가 나오도록 설정하려면 어떻게 해야하나요?
:
:
:
: 시도해 본 것은 아래와 같습니다.
:
:
: // 1
: PPropInfo PropInfo = GetPropInfo(__typeinfo(TMyShape), "Enabled");
: RegisterPropertyEditor(*(PropInfo->PropType), NULL, "", __classid(TBoolProperty));
: 
: // 2
: RegisterPropertyEditor(	__typeinfo(TMyShape),
:                         __classid(TComponent),
:                         "Enabled",
:                         __classid(TBoolProperty));
: RegisterPropertyInCategory("Action", __classid(TMyShape), "Enabled");
: RegisterPropertyInCategory("Visual", __classid(TMyShape), "Enabled");
: RegisterPropertyInCategory("Input", __classid(TMyShape), "Enabled");
: 

:

+ -

관련 글 리스트
71440 직접만든 컴포넌트 Object Inspector 문제 송신영 3144 2014/06/19
71442     Re:직접만든 컴포넌트 Object Inspector 문제 송신영 3048 2014/06/19
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.