home *** CD-ROM | disk | FTP | other *** search
- Program KeyTTT5_Demo_3;
-
- Uses CRT, FASTTTT5, KeyTTT5;
-
- var Ch : char;
-
- begin
- ClrScr;
- WriteCenter(1,white,black,'Special Keys Demo - TTT 5.0');
- WriteCenter(24,lightgray,black,'Press Alt, Ctrl, Shift, Caps, Num, Scroll or ESC to exit');
- Set_Caps(True);
- Set_Num(True);
- Set_Scroll(true);
- Repeat
- If Keypressed then
- Ch := GetKey;
- If CapsOn then
- Fastwrite(30,5,white,'CAPS')
- else
- Fastwrite(30,5,white,' ');
- If NumOn then
- Fastwrite(30,6,white,'NUM')
- else
- Fastwrite(30,6,white,' ');
- If ScrollOn then
- Fastwrite(30,7,white,'SCROLL')
- else
- Fastwrite(30,7,white,' ');
- If ALT_Pressed then
- Fastwrite(30,8,white,'ALT')
- else
- Fastwrite(30,8,white,' ');
- If CTRL_Pressed then
- Fastwrite(30,9,white,'CTRL')
- else
- Fastwrite(30,9,white,' ');
- If LeftShift_Pressed then
- Fastwrite(30,10,white,'Left Shift')
- else
- Fastwrite(30,10,white,' ');
- If RightShift_Pressed then
- Fastwrite(30,11,white,'Right Shift')
- else
- Fastwrite(30,11,white,' ');
- Until Ch = #027;
- clrscr;
- WriteAT(1,1,white,black,'Run DemoTTT.exe for the main demo program');
- WriteAT(1,2,white,black,'TechnoJock''s Turbo Toolkit v5.0');
- GotoXY(1,5);
- end.