[OSK] Implement standard/enhanced keyboard handler (#1338)
[reactos.git] / base / applications / osk / lang / et-EE.rc
index 139ecd9..4de3166 100644 (file)
@@ -8,7 +8,7 @@
 
 LANGUAGE LANG_ESTONIAN, SUBLANG_DEFAULT
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 463, 115
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 463, 115
 CAPTION "Ekraaniklaviatuur"
 FONT 8, "MS Shell Dlg"
 MENU IDR_OSK_MENU
@@ -127,6 +127,125 @@ BEGIN
     CONTROL         "",IDC_LED_SCROLL,"Static",SS_CENTER|SS_NOTIFY,443,15,4,3
 END
 
+MAIN_DIALOG_STANDARD_KB DIALOGEX DISCARDABLE 0, 0, 362, 115
+CAPTION "On screen keyboard"
+FONT 8, "MS Shell Dlg"
+MENU IDR_OSK_MENU
+STYLE WS_SYSMENU | WS_MINIMIZEBOX
+EXSTYLE WS_EX_TOPMOST | WS_EX_NOACTIVATE | WS_EX_APPWINDOW
+BEGIN
+    PUSHBUTTON      "Esc",SCAN_CODE_110,3,3,15,15
+    PUSHBUTTON      "F1",SCAN_CODE_112,43,3,15,15
+    PUSHBUTTON      "F2",SCAN_CODE_113,63,3,15,15
+    PUSHBUTTON      "F3",SCAN_CODE_114,83,3,15,15
+    PUSHBUTTON      "F4",SCAN_CODE_115,103,3,15,15
+    PUSHBUTTON      "F5",SCAN_CODE_116,123,3,15,15
+    PUSHBUTTON      "F6",SCAN_CODE_117,143,3,15,15
+    PUSHBUTTON      "F7",SCAN_CODE_118,183,3,15,15
+    PUSHBUTTON      "F8",SCAN_CODE_119,203,3,15,15
+    PUSHBUTTON      "F9",SCAN_CODE_120,223,3,15,15
+    PUSHBUTTON      "F10",SCAN_CODE_121,243,3,15,15
+    PUSHBUTTON      "F11",SCAN_CODE_122,263,3,15,15
+    PUSHBUTTON      "F12",SCAN_CODE_123,283,3,15,15
+    PUSHBUTTON      "Prn",SCAN_CODE_124,304,3,15,15
+    PUSHBUTTON      "Stop",SCAN_CODE_125,324,3,15,15
+    PUSHBUTTON      "Attn",SCAN_CODE_126,344,3,15,15
+    PUSHBUTTON      "`",SCAN_CODE_1,3,22,15,15
+    PUSHBUTTON      "1",SCAN_CODE_2,23,22,15,15
+    PUSHBUTTON      "2",SCAN_CODE_3,43,22,15,15
+    PUSHBUTTON      "3",SCAN_CODE_4,63,22,15,15
+    PUSHBUTTON      "4",SCAN_CODE_5,83,22,15,15
+    PUSHBUTTON      "5",SCAN_CODE_6,103,22,15,15
+    PUSHBUTTON      "6",SCAN_CODE_7,123,22,15,15
+    PUSHBUTTON      "7",SCAN_CODE_8,143,22,15,15
+    PUSHBUTTON      "8",SCAN_CODE_9,163,22,15,15
+    PUSHBUTTON      "9",SCAN_CODE_10,183,22,15,15
+    PUSHBUTTON      "0",SCAN_CODE_11,203,22,15,15
+    PUSHBUTTON      "-",SCAN_CODE_12,223,22,15,15
+    PUSHBUTTON      "=",SCAN_CODE_13,243,22,15,15
+    PUSHBUTTON      "<--",SCAN_CODE_15,263,22,36,15,BS_ICON
+    PUSHBUTTON      "Tab",SCAN_CODE_16,3,41,35,15,BS_ICON
+    PUSHBUTTON      "q",SCAN_CODE_17,42,41,15,15
+    PUSHBUTTON      "w",SCAN_CODE_18,61,41,15,15
+    PUSHBUTTON      "e",SCAN_CODE_19,80,41,15,15
+    PUSHBUTTON      "r",SCAN_CODE_20,99,41,15,15
+    PUSHBUTTON      "t",SCAN_CODE_21,118,41,15,15
+    PUSHBUTTON      "y",SCAN_CODE_22,137,41,15,15
+    PUSHBUTTON      "u",SCAN_CODE_23,156,41,15,15
+    PUSHBUTTON      "i",SCAN_CODE_24,175,41,15,15
+    PUSHBUTTON      "o",SCAN_CODE_25,194,41,15,15
+    PUSHBUTTON      "p",SCAN_CODE_26,213,41,15,15
+    PUSHBUTTON      "[",SCAN_CODE_27,232,41,15,15
+    PUSHBUTTON      "]",SCAN_CODE_28,251,41,15,15
+    PUSHBUTTON      "lock",SCAN_CODE_30,3,60,46,15,BS_ICON
+    PUSHBUTTON      "a",SCAN_CODE_31,53,60,15,15
+    PUSHBUTTON      "s",SCAN_CODE_32,72,60,15,15
+    PUSHBUTTON      "d",SCAN_CODE_33,91,60,15,15
+    PUSHBUTTON      "f",SCAN_CODE_34,110,60,15,15
+    PUSHBUTTON      "g",SCAN_CODE_35,129,60,15,15
+    PUSHBUTTON      "h",SCAN_CODE_36,148,60,15,15
+    PUSHBUTTON      "j",SCAN_CODE_37,167,60,15,15
+    PUSHBUTTON      "k",SCAN_CODE_38,186,60,15,15
+    PUSHBUTTON      "l",SCAN_CODE_39,205,60,15,15
+    PUSHBUTTON      ";",SCAN_CODE_40,224,60,15,15
+    PUSHBUTTON      "'",SCAN_CODE_41,243,60,15,15
+    PUSHBUTTON      "\\",SCAN_CODE_29,270,41,30,15
+    PUSHBUTTON      "ret",SCAN_CODE_43,262,60,38,15,BS_ICON
+    PUSHBUTTON      "shift",SCAN_CODE_44,3,79,57,15,BS_ICON|BS_PUSHLIKE|BS_AUTOCHECKBOX
+    PUSHBUTTON      "z",SCAN_CODE_46,64,79,15,15
+    PUSHBUTTON      "x",SCAN_CODE_47,83,79,15,15
+    PUSHBUTTON      "c",SCAN_CODE_48,102,79,15,15
+    PUSHBUTTON      "v",SCAN_CODE_49,121,79,15,15
+    PUSHBUTTON      "b",SCAN_CODE_50,140,79,15,15
+    PUSHBUTTON      "n",SCAN_CODE_51,159,79,15,15
+    PUSHBUTTON      "m",SCAN_CODE_52,178,79,15,15
+    PUSHBUTTON      ",",SCAN_CODE_53,197,79,15,15
+    PUSHBUTTON      ".",SCAN_CODE_54,216,79,15,15
+    PUSHBUTTON      "/",SCAN_CODE_55,235,79,15,15
+    PUSHBUTTON      "shift",SCAN_CODE_57,254,79,45,15,BS_ICON|BS_PUSHLIKE|BS_AUTOCHECKBOX
+    PUSHBUTTON      "ctrl",SCAN_CODE_58,3,98,24,15,BS_PUSHLIKE|BS_AUTOCHECKBOX
+    PUSHBUTTON      "v",SCAN_CODE_84,324,98,15,15,BS_ICON
+    PUSHBUTTON      "ROS",SCAN_CODE_127,30,98,24,15,BS_ICON
+    PUSHBUTTON      "alt",SCAN_CODE_60,57,98,24,15,BS_PUSHLIKE|BS_AUTOCHECKBOX
+    PUSHBUTTON      "",SCAN_CODE_61,84,98,106,15 //space
+    PUSHBUTTON      "alt",SCAN_CODE_62,194,98,24,15,BS_PUSHLIKE|BS_AUTOCHECKBOX
+    PUSHBUTTON      "ROS",SCAN_CODE_128,221,98,24,15,BS_ICON
+    PUSHBUTTON      "menu",SCAN_CODE_129,248,98,24,15,BS_ICON
+    PUSHBUTTON      "ctrl",SCAN_CODE_64,275,98,24,15,BS_PUSHLIKE|BS_AUTOCHECKBOX
+    PUSHBUTTON      "ins",SCAN_CODE_75,304,22,15,15
+    PUSHBUTTON      "del",SCAN_CODE_76,304,41,15,15
+    PUSHBUTTON      "hm",SCAN_CODE_80,324,22,15,15
+    PUSHBUTTON      "end",SCAN_CODE_81,324,41,15,15
+    PUSHBUTTON      "pup",SCAN_CODE_85,344,22,15,15
+    PUSHBUTTON      "pdn",SCAN_CODE_86,344,41,15,15
+    PUSHBUTTON      "<-",SCAN_CODE_79,304,98,15,15,BS_ICON
+    PUSHBUTTON      "^",SCAN_CODE_83,324,79,15,15,BS_ICON
+    PUSHBUTTON      "->",SCAN_CODE_89,344,98,15,15,BS_ICON
+    PUSHBUTTON      "nlk",SCAN_CODE_90,364,22,15,15
+    PUSHBUTTON      "7",SCAN_CODE_91,364,41,15,15
+    PUSHBUTTON      "4",SCAN_CODE_92,364,60,15,15
+    PUSHBUTTON      "1",SCAN_CODE_93,364,79,15,15
+    PUSHBUTTON      "/",SCAN_CODE_95,384,22,15,15
+    PUSHBUTTON      "8",SCAN_CODE_96,384,41,15,15
+    PUSHBUTTON      "5",SCAN_CODE_97,384,60,15,15
+    PUSHBUTTON      "2",SCAN_CODE_98,384,79,15,15
+    PUSHBUTTON      "0",SCAN_CODE_99,364,98,34,15
+    PUSHBUTTON      "*",SCAN_CODE_100,404,22,15,15
+    PUSHBUTTON      "9",SCAN_CODE_101,404,41,15,15
+    PUSHBUTTON      "6",SCAN_CODE_102,404,60,15,15
+    PUSHBUTTON      "3",SCAN_CODE_103,404,79,15,15
+    PUSHBUTTON      ".",SCAN_CODE_104,404,98,15,15
+    PUSHBUTTON      "-",SCAN_CODE_105,424,22,15,15
+    PUSHBUTTON      "+",SCAN_CODE_106,424,41,15,35
+    PUSHBUTTON      "ent",SCAN_CODE_108,424,78,15,35
+    CTEXT           "Num",IDC_STATIC,364,3,21,8
+    CONTROL         "",IDC_LED_NUM,"Static",SS_CENTER|SS_NOTIFY,372,15,4,3
+    CTEXT           "Caps",IDC_STATIC,389,3,21,8
+    CONTROL         "",IDC_LED_CAPS,"Static",SS_CENTER|SS_NOTIFY,398,15,4,3
+    CTEXT           "Scroll",IDC_STATIC,414,3,21,8
+    CONTROL         "",IDC_LED_SCROLL,"Static",SS_CENTER|SS_NOTIFY,424,15,4,3
+END
+
 IDR_OSK_MENU MENU DISCARDABLE
 BEGIN
     POPUP "File"
@@ -136,8 +255,8 @@ BEGIN
 
     POPUP "Keyboard"
     BEGIN
-        MENUITEM "Enhanced Keyboard", IDM_ENCHANCED_KB, CHECKED, GRAYED
-        MENUITEM "Standard Keyboard", IDM_STANDARD_KB, GRAYED
+        MENUITEM "Enhanced Keyboard", IDM_ENHANCED_KB, CHECKED
+        MENUITEM "Standard Keyboard", IDM_STANDARD_KB
         MENUITEM SEPARATOR
         MENUITEM "Regular Layout", IDM_REG_LAYOUT, CHECKED, GRAYED
         MENUITEM "Block Layout", IDM_BLOCK_LAYOUT, GRAYED