|
class PACKAGE TD2DCore : public TApplication
{
__published:
__property bool FullScreenMode = { read = FFullScreenMode, write = SetFullScreenMode, default = false };
__property TFullScreenSize FullScreenSize = { read = FFullScreenSize, write = SetFullScreenSize, default = fs0480};
__property DWORD ColorKey = { read = FColorKey, write = FColorKey, default = 0x00FF00FF};
__property TPanel *WindowModeTargetPanel = { read = FPanel, write = SetPanel };
__property OnIdle;
..............
..............
}
헤더에 이런 식으로 선언하고 컴파일해서 등록했습니다..
OnIdle에다 코딩을 하고 컴파일 하니까 OnIdle 실행이 안됩니다.. 원래 이벤트가 없을때 OnIdle이 계속 실행되는데, 컴포넌트로 구현하니까 안되네요.. 위에서 틀린 부분이 있나요? 답변 부탁드립니다..
|