10.07.2015 Views

cubloc_manual2.pdf

cubloc_manual2.pdf

cubloc_manual2.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SAMPLE 2다음은 화면상에 RESET 보턴을 그리고, 이 보턴이 터치되었을 때 증가되는 값을 0 으로 리셋하는샘플 프로그램 입니다.3241RESETConst Device = Ct1700Dim I As IntegerDim TX1 As Integer, TY1 As IntegerContrast 550Set Pad 0,4,5On Pad Gosub GETTOUCHMenuset 0,2,120,155,195,200Menutitle 0,20,14,"RESET"DoLoopLocate 15,6Print DEC5 IIncr IDelay 200GETTOUCH:TX1 = Getpad(2)TY1 = Getpad(2)If Menucheck(0,TX1,TY1) = 1 ThenPulsout 18,300I = 0End IfReturnSET PAD 명령에 의해 터치입력이 활성화되고, ON PAD 명령에 의해 터치입력시 점프할 라벨을선언합니다. MENUSET 명령은 화면에 터치영역을 선언하는 명령이고, MENUTITLE 은 선언된터치영역에 이름을 표시합니다.PULSEOUT 은 BEEP 사운드를 발생시키는 명령입니다.379

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!