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

델파이 Q&A
Delphi Programming Q&A
[3252] >질문< enter component만들다가 error납니다
dareun [ ] 1121 읽음    1998-06-12 18:15
다음문장을 만들고 델파이 lib에 저장한후 install component를 하고
compiler라는 버튼을 누르면 아래에 표시한 부분에 error가 나는데
그 이유를 좀 알려주세요

unit EnterDb;
interface
uses
    sysutils, wintypes, winprocs, messages, classes, graphics,
    controls,forms,dialogs,stdctrls,dbctrls;

type
    TEnterDbEdit = class(TDBEdit)

protected
    procedure Keypress(var key :char);override;
    procedure KeyDown(var key :Word; shift:TShiftState);override;

public
published
end;

procedure register;

implementation

procedure register;
     begin
          registerComponents('Samples',[TEnterDbEdit]);
     end;

procedure TEnterDbEdit.KeyPress(var key:char);
var
   MyForm:TForm;
   begin
        if key = #13 then begin

error******>>>  MyForm := GetParentForm(self);

           if not (MyForm = nil) then
                  SendMessage(myForm.Handle,wm_nextdlgctl,0,0);
                  key := #0;
        end;
        if key <> #0 then inherited KeyPress(Key);
   end;

procedure TEnterDbEdit.KeyDown(var key:word;shift:TShiftState);
var
   MyForm:TForm;
   CtlDir:Word;
begin
     if(Key=VK_UP) or (Key=VK_DOWN) then
        begin

error******>>> MyForm := GetParentForm(self);

             if Key = VK_UP then CtlDir := 1
             else CtlDir := 0;

             if not(MyForm=nil) then
                SendMessage(MyForm.Handle,WM_NEXTDLGCTL,CtlDir,0);
        end
     else inherited keydown(key,shift);
end;

end.


+ -

관련 글 리스트
3252 >질문< enter component만들다가 error납니다 dareun 1121 1998/06/12
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.