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
[46121] 특수문자 입력 질문....
대마두 [daemadoo] 943 읽음    2006-08-10 16:30
계산기 만들고 있는데요....

숫자로 번호나 기호를 입력합니다...

근데 @ 나 % * 같은걸 입력하려고 하는데...

쉬프트 누르고 선택을 하면 @나 % * 이 입력이 안되고

2 5 8 이런 숫자로 입력 됩니다..

이거 어떻게 처리 해야 하나요?

아래 소스처럼 꽁수로 쉬프트+2 누르면 @ 나오고 이런 방법으로 해도 안되더군요....

키보드 입력 부분만 소스 올립니다..

답변 부탁드립니다....

void __fastcall TfrmMain::FormKeyDown(TObject *Sender, WORD &Key,        //키보드로 입력하기 위한 함수
      TShiftState Shift)
{
      if (Key == '1')
         btn1Click(this);
      else if (Key == '2')
           btn2Click(this);
      else if (Key == '3')
           btn3Click(this);
      else if (Key == '4')
           btn4Click(this);
      else if (Key == '5')
           btn5Click(this);
      else if (Key == '6')
           btn6Click(this);
      else if (Key == '7')
           btn7Click(this);
      else if (Key == '8')
           btn8Click(this);
      else if (Key == '9')
           btn9Click(this);
      else if (Key == '0')
           btn0Click(this);
      else if (Key == VK_BACK)
           btnBSClick(this);
      else if (Key == VK_ESCAPE)
           btnCClick(this);
      else if (Key == VK_DELETE)
           btnCEClick(this);
      else if (Key == VK_F9)
           btnPMClick(this);
      else if (Key == 'R')
           btn1perxClick(this);
      else if(Shift.Contains(ssCtrl)) {
           switch (Key) {
                  case 'L' : btnMCClick(this);
                  case 'R' : btnMRClick(this);
                  case 'M' : btnMSClick(this);
                  case 'P' : btnMPClick(this);
           }
      }
      else if(Shift.Contains(ssShift)) {
           switch (Key) {
                  case '2' : btnsqrtClick(this);
                  case '5' : btnPerClick(this);
           }
      }
}

+ -

관련 글 리스트
46121 특수문자 입력 질문.... 대마두 943 2006/08/10
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.