[OSK] Implement standard/enhanced keyboard handler (#1338)
authorBișoc George <fraizeraust99@gmail.com>
Sun, 10 Feb 2019 15:04:16 +0000 (16:04 +0100)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Sun, 10 Feb 2019 15:04:16 +0000 (16:04 +0100)
- Add the respective standard keyboard resource.
- Implement the standard/enhanced keyboard dialog switcher.
- Implement save/load handler.
- Move the warning box conditinal check (bShowWarning) to wWinMain application entry point (this will prevent the modal welcome box from displaying each time the user switches into another dialog).

CORE-14428

21 files changed:
base/applications/osk/lang/ar-DZ.rc
base/applications/osk/lang/cs-CZ.rc
base/applications/osk/lang/de-DE.rc
base/applications/osk/lang/en-GB.rc
base/applications/osk/lang/en-US.rc
base/applications/osk/lang/es-ES.rc
base/applications/osk/lang/et-EE.rc
base/applications/osk/lang/fr-CA.rc
base/applications/osk/lang/fr-FR.rc
base/applications/osk/lang/he-IL.rc
base/applications/osk/lang/it-IT.rc
base/applications/osk/lang/pl-PL.rc
base/applications/osk/lang/ro-RO.rc
base/applications/osk/lang/ru-RU.rc
base/applications/osk/lang/tr-TR.rc
base/applications/osk/lang/zh-CN.rc
base/applications/osk/lang/zh-TW.rc
base/applications/osk/main.c
base/applications/osk/main.h
base/applications/osk/osk_res.h
base/applications/osk/settings.c

index 4feabe0..3bf1192 100644 (file)
@@ -8,7 +8,7 @@
 
 LANGUAGE LANG_ARABIC, SUBLANG_DEFAULT
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 608, 164
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 608, 164
 CAPTION "On screen keyboard"
 FONT 8, "MS Shell Dlg"
 MENU IDR_OSK_MENU
@@ -127,6 +127,125 @@ BEGIN
     CONTROL         "",IDC_LED_SCROLL,"Static",SS_CENTER|SS_NOTIFY,580,16,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
index 21b68ec..3d35fa2 100644 (file)
@@ -8,7 +8,7 @@
 
 LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 608, 164
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 608, 164
 CAPTION "Klávesnice na obrazovce"
 FONT 8, "MS Shell Dlg"
 MENU IDR_OSK_MENU
@@ -127,6 +127,125 @@ BEGIN
     CONTROL         "",IDC_LED_SCROLL,"Static",SS_CENTER|SS_NOTIFY,580,16,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
index 3fa0d40..6748444 100644 (file)
@@ -8,7 +8,7 @@
 
 LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 608, 164
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 608, 164
 CAPTION "Bildschirmtastatur"
 FONT 8, "MS Shell Dlg"
 MENU IDR_OSK_MENU
@@ -128,6 +128,125 @@ BEGIN
     CONTROL         "",IDC_LED_SCROLL,"Static",SS_CENTER|SS_NOTIFY,580,16,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"
@@ -137,8 +256,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
index fa849f3..11f91b9 100644 (file)
@@ -8,7 +8,7 @@
 
 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 608, 164
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 608, 164
 CAPTION "On screen keyboard"
 FONT 8, "MS Shell Dlg"
 MENU IDR_OSK_MENU
@@ -128,6 +128,125 @@ BEGIN
     CONTROL         "",IDC_LED_SCROLL,"Static",SS_CENTER|SS_NOTIFY,580,16,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"
@@ -137,8 +256,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
index 644e32c..cabdadb 100644 (file)
@@ -8,7 +8,7 @@
 
 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 463, 115
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 463, 115
 CAPTION "On screen keyboard"
 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
index 41d8a18..4fc2284 100644 (file)
@@ -9,7 +9,7 @@
 
 LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 608, 164
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 608, 164
 CAPTION "Teclado en pantalla"
 FONT 8, "MS Shell Dlg"
 MENU IDR_OSK_MENU
@@ -129,6 +129,125 @@ BEGIN
     CONTROL         "",IDC_LED_SCROLL,"Static",SS_CENTER|SS_NOTIFY,580,16,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"
@@ -138,8 +257,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
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
index 429156c..27c2cc7 100644 (file)
@@ -8,7 +8,7 @@
 
 LANGUAGE LANG_FRENCH, SUBLANG_FRENCH_CANADIAN
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 608, 164
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 608, 164
 CAPTION "Clavier visuel"
 FONT 8, "MS Shell Dlg"
 MENU IDR_OSK_MENU
@@ -128,6 +128,125 @@ BEGIN
     CONTROL         "",IDC_LED_SCROLL,"Static",SS_CENTER|SS_NOTIFY,580,16,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"
@@ -137,8 +256,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
index 5057fa3..eef680d 100644 (file)
@@ -8,7 +8,7 @@
 
 LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 608, 164
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 608, 164
 CAPTION "Clavier visuel"
 FONT 8, "MS Shell Dlg"
 MENU IDR_OSK_MENU
@@ -128,6 +128,125 @@ BEGIN
     CONTROL         "",IDC_LED_SCROLL,"Static",SS_CENTER|SS_NOTIFY,580,16,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"
@@ -137,8 +256,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
index c91405b..5f1fa89 100644 (file)
@@ -8,7 +8,7 @@
 
 LANGUAGE LANG_HEBREW, SUBLANG_DEFAULT
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 608, 164
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 608, 164
 CAPTION "לוח מקשים על התצוגה"
 FONT 8, "MS Shell Dlg"
 MENU IDR_OSK_MENU
@@ -127,6 +127,125 @@ BEGIN
     CONTROL         "",IDC_LED_SCROLL,"Static",SS_CENTER|SS_NOTIFY,580,16,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
index 6e2c792..0f614a1 100644 (file)
@@ -8,7 +8,7 @@
 
 LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 463, 115
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 463, 115
 CAPTION "Tastiera a schermo"
 FONT 8, "MS Shell Dlg"
 MENU IDR_OSK_MENU
@@ -128,6 +128,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"
@@ -137,8 +256,8 @@ IDR_OSK_MENU MENU DISCARDABLE
 
     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
index 89244f0..d5f7e2d 100644 (file)
@@ -8,7 +8,7 @@
 
 LANGUAGE LANG_POLISH, SUBLANG_NEUTRAL
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 608, 164
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 608, 164
 CAPTION "Klawiatura Ekranowa"
 FONT 8, "MS Shell Dlg"
 MENU IDR_OSK_MENU
@@ -127,6 +127,125 @@ BEGIN
     CONTROL         "",IDC_LED_SCROLL,"Static",SS_CENTER|SS_NOTIFY,580,16,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
index 379e54e..57e1616 100644 (file)
@@ -9,7 +9,7 @@
 
 LANGUAGE LANG_ROMANIAN, SUBLANG_DEFAULT
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 463, 115
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 463, 115
 CAPTION "Tastatură virtuală"
 FONT 8, "MS Shell Dlg"
 MENU IDR_OSK_MENU
@@ -128,6 +128,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"
@@ -137,8 +256,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
index d4cdd6f..cbaafcf 100644 (file)
@@ -8,7 +8,7 @@
 
 LANGUAGE LANG_RUSSIAN, SUBLANG_NEUTRAL
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 463, 115
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 463, 115
 CAPTION "Экранная клавиатура"
 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
index c12958f..3ccca25 100644 (file)
@@ -8,7 +8,7 @@
 
 LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 608, 164
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 608, 164
 CAPTION "Ekran Klavyesi"
 FONT 8, "MS Shell Dlg"
 MENU IDR_OSK_MENU
@@ -127,6 +127,125 @@ BEGIN
     CONTROL         "",IDC_LED_SCROLL,"Static",SS_CENTER|SS_NOTIFY,580,16,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
index f8deff1..da381ed 100644 (file)
@@ -11,7 +11,7 @@
 
 LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 608, 164
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 608, 164
 CAPTION "屏幕键盘"
 FONT 9, "宋体"
 MENU IDR_OSK_MENU
@@ -130,6 +130,125 @@ BEGIN
     CONTROL         "",IDC_LED_SCROLL,"Static",SS_CENTER|SS_NOTIFY,580,16,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"
@@ -139,8 +258,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
index 97e83a7..3ea417a 100644 (file)
@@ -10,7 +10,7 @@
 
 LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
 
-MAIN_DIALOG DIALOGEX DISCARDABLE 0, 0, 608, 164
+MAIN_DIALOG_ENHANCED_KB DIALOGEX DISCARDABLE 0, 0, 608, 164
 CAPTION "螢幕鍵盤"
 FONT 9, "新細明體"
 MENU IDR_OSK_MENU
@@ -129,6 +129,125 @@ BEGIN
     CONTROL         "",IDC_LED_SCROLL,"Static",SS_CENTER|SS_NOTIFY,580,16,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"
@@ -138,8 +257,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
index ffb01a2..72cee21 100644 (file)
@@ -143,8 +143,19 @@ int OSK_DlgInitDialog(HWND hDlg)
     /* Save handle */
     Globals.hMainWnd = hDlg;
 
-    /* Load the settings from the registry hive */
-    LoadDataFromRegistry();
+    /* Check the checked menu item before displaying the modal box */
+    if (Globals.bIsEnhancedKeyboard)
+    {
+        /* Enhanced keyboard dialog chosen, set the respective menu item as checked */
+        CheckMenuItem(GetMenu(hDlg), IDM_ENHANCED_KB, MF_BYCOMMAND | MF_CHECKED);
+        CheckMenuItem(GetMenu(hDlg), IDM_STANDARD_KB, MF_BYCOMMAND | MF_UNCHECKED);
+    }
+    else
+    {
+        /* Standard keyboard dialog chosen, set the respective menu item as checked */
+        CheckMenuItem(GetMenu(hDlg), IDM_STANDARD_KB, MF_BYCOMMAND | MF_CHECKED);
+        CheckMenuItem(GetMenu(hDlg), IDM_ENHANCED_KB, MF_BYCOMMAND | MF_UNCHECKED);
+    }
 
     /* Set the application's icon */
     hIcon = LoadImageW(Globals.hInstance, MAKEINTRESOURCEW(IDI_OSK), IMAGE_ICON, 0, 0, LR_SHARED | LR_DEFAULTSIZE);
@@ -197,12 +208,6 @@ int OSK_DlgInitDialog(HWND hDlg)
     /* Set a timer for periodics tasks */
     Globals.iTimer = SetTimer(hDlg, 0, 200, NULL);
 
-    /* If the member of the struct (bShowWarning) is set then display the dialog box */
-    if (Globals.bShowWarning)
-    {
-        DialogBoxW(Globals.hInstance, MAKEINTRESOURCEW(IDD_WARNINGDIALOG_OSK), Globals.hMainWnd, OSK_WarningProc);
-    }
-
     return TRUE;
 }
 
@@ -441,6 +446,58 @@ INT_PTR APIENTRY OSK_DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
                     break;
                 }
 
+                case IDM_ENHANCED_KB:
+                {
+                    if (!Globals.bIsEnhancedKeyboard)
+                    {
+                        /* 
+                            The user attempted to switch to enhanced keyboard dialog type.
+                            Set the member value as TRUE, destroy the dialog and save the data configuration into the registry.
+                        */
+                        Globals.bIsEnhancedKeyboard = TRUE;
+                        EndDialog(hDlg, FALSE);
+                        SaveDataToRegistry();
+
+                        /* Change the condition of enhanced keyboard item menu to checked */
+                        CheckMenuItem(GetMenu(hDlg), IDM_ENHANCED_KB, MF_BYCOMMAND | MF_CHECKED);
+                        CheckMenuItem(GetMenu(hDlg), IDM_STANDARD_KB, MF_BYCOMMAND | MF_UNCHECKED);
+
+                        /* Finally, display the dialog modal box with the enhanced keyboard dialog */
+                        DialogBoxW(Globals.hInstance,
+                                   MAKEINTRESOURCEW(MAIN_DIALOG_ENHANCED_KB),
+                                   GetDesktopWindow(),
+                                   OSK_DlgProc);
+                    }
+
+                    break;
+                }
+
+                case IDM_STANDARD_KB:
+                {
+                    if (Globals.bIsEnhancedKeyboard)
+                    {
+                        /*
+                            The user attempted to switch to standard keyboard dialog type.
+                            Set the member value as FALSE, destroy the dialog and save the data configuration into the registry.
+                        */
+                        Globals.bIsEnhancedKeyboard = FALSE;
+                        EndDialog(hDlg, FALSE);
+                        SaveDataToRegistry();
+
+                        /* Change the condition of standard keyboard item menu to checked */
+                        CheckMenuItem(GetMenu(hDlg), IDM_ENHANCED_KB, MF_BYCOMMAND | MF_UNCHECKED);
+                        CheckMenuItem(GetMenu(hDlg), IDM_STANDARD_KB, MF_BYCOMMAND | MF_CHECKED);
+
+                        /* Finally, display the dialog modal box with the standard keyboard dialog */
+                        DialogBoxW(Globals.hInstance,
+                                   MAKEINTRESOURCEW(MAIN_DIALOG_STANDARD_KB),
+                                   GetDesktopWindow(),
+                                   OSK_DlgProc);
+                    }
+
+                    break;
+                }
+
                 case IDM_ABOUT:
                 {
                     OSK_About();
@@ -471,6 +528,7 @@ int WINAPI wWinMain(HINSTANCE hInstance,
                     int show)
 {
     HANDLE hMutex;
+    INT LayoutResource;
 
     UNREFERENCED_PARAMETER(prev);
     UNREFERENCED_PARAMETER(cmdline);
@@ -479,6 +537,25 @@ int WINAPI wWinMain(HINSTANCE hInstance,
     ZeroMemory(&Globals, sizeof(Globals));
     Globals.hInstance = hInstance;
 
+    /* Load the settings from the registry hive */
+    LoadDataFromRegistry();
+
+    /* If the member of the struct (bShowWarning) is set then display the dialog box */
+    if (Globals.bShowWarning)
+    {
+        DialogBoxW(Globals.hInstance, MAKEINTRESOURCEW(IDD_WARNINGDIALOG_OSK), Globals.hMainWnd, OSK_WarningProc);
+    }
+
+    /* Before initializing the dialog execution, check if the chosen keyboard type is standard or enhanced */
+    if (Globals.bIsEnhancedKeyboard)
+    {
+        LayoutResource = MAIN_DIALOG_ENHANCED_KB;
+    }
+    else
+    {
+        LayoutResource = MAIN_DIALOG_STANDARD_KB;
+    }
+
     /* Rry to open a mutex for a single instance */
     hMutex = OpenMutexW(MUTEX_ALL_ACCESS, FALSE, L"osk");
 
@@ -487,8 +564,9 @@ int WINAPI wWinMain(HINSTANCE hInstance,
         /* Mutex doesn\92t exist. This is the first instance so create the mutex. */
         hMutex = CreateMutexW(NULL, FALSE, L"osk");
 
+        /* Create the modal box based on the configuration registry */
         DialogBoxW(hInstance,
-                   MAKEINTRESOURCEW(MAIN_DIALOG),
+                   MAKEINTRESOURCEW(LayoutResource),
                    GetDesktopWindow(),
                    OSK_DlgProc);
 
index 67f08b2..a399aba 100644 (file)
@@ -24,6 +24,7 @@ typedef struct
     /* FIXME: To be deleted when ReactOS will support WS_EX_NOACTIVATE */
     HWND       hActiveWnd;
     BOOL       bShowWarning;
+    BOOL       bIsEnhancedKeyboard;
 } OSK_GLOBALS;
 
 /* DEFINES ********************************************************************/
index d62777e..03fdffc 100644 (file)
@@ -6,51 +6,52 @@
  * PROGRAMMERS:     Denis ROBERT
  */
 
-#define MAIN_DIALOG             2000
+#define MAIN_DIALOG_ENHANCED_KB             2000
+#define MAIN_DIALOG_STANDARD_KB             2001
 
-#define IDC_LED_NUM             100
-#define IDC_LED_CAPS            101
-#define IDC_LED_SCROLL          102
-#define IDC_SHOWWARNINGCHECK    103
+#define IDC_LED_NUM                         100
+#define IDC_LED_CAPS                        101
+#define IDC_LED_SCROLL                      102
+#define IDC_SHOWWARNINGCHECK                103
 
-#define IDI_OSK                 200
-#define IDI_BACK                201
-#define IDI_TAB                 202
-#define IDI_CAPS_LOCK           203
-#define IDI_RETURN              204
-#define IDI_SHIFT               205
-#define IDI_REACTOS             206
-#define IDI_MENU                207
-#define IDI_HOME                208
-#define IDI_PG_UP               209
-#define IDI_PG_DOWN             210
-#define IDI_LEFT                211
-#define IDI_TOP                 212
-#define IDI_RIGHT               213
-#define IDI_BOTTOM              214
+#define IDI_OSK                             200
+#define IDI_BACK                            201
+#define IDI_TAB                             202
+#define IDI_CAPS_LOCK                       203
+#define IDI_RETURN                          204
+#define IDI_SHIFT                           205
+#define IDI_REACTOS                         206
+#define IDI_MENU                            207
+#define IDI_HOME                            208
+#define IDI_PG_UP                           209
+#define IDI_PG_DOWN                         210
+#define IDI_LEFT                            211
+#define IDI_TOP                             212
+#define IDI_RIGHT                           213
+#define IDI_BOTTOM                          214
 
-#define IDR_OSK_MENU            600
-#define IDM_EXIT                601
-#define IDM_STANDARD_KB         602
-#define IDM_ENCHANCED_KB        603
-#define IDM_REG_LAYOUT          604
-#define IDM_BLOCK_LAYOUT        605
-#define IDM_101_KEYS            606
-#define IDM_102_KEYS            607
-#define IDM_106_KEYS            608
-#define IDM_ON_TOP              609
-#define IDM_CLICK_SOUND         610
-#define IDM_TYPE_MODE           611
-#define IDM_FONT                612
-#define IDM_HELP_TOPICS         613
-#define IDM_ABOUT               614
+#define IDR_OSK_MENU                        600
+#define IDM_EXIT                            601
+#define IDM_STANDARD_KB                     602
+#define IDM_ENHANCED_KB                     603
+#define IDM_REG_LAYOUT                      604
+#define IDM_BLOCK_LAYOUT                    605
+#define IDM_101_KEYS                        606
+#define IDM_102_KEYS                        607
+#define IDM_106_KEYS                        608
+#define IDM_ON_TOP                          609
+#define IDM_CLICK_SOUND                     610
+#define IDM_TYPE_MODE                       611
+#define IDM_FONT                            612
+#define IDM_HELP_TOPICS                     613
+#define IDM_ABOUT                           614
 
-#define IDD_WARNINGDIALOG_OSK   215
+#define IDD_WARNINGDIALOG_OSK               215
 
-#define STRING_OSK              500
-#define STRING_AUTHORS          501
+#define STRING_OSK                          500
+#define STRING_AUTHORS                      501
 
-#define IDC_STATIC              -1
+#define IDC_STATIC                          -1
 
 
 /* Scan codes by key number */
index 33f8893..fa21d67 100644 (file)
@@ -16,11 +16,12 @@ BOOL LoadDataFromRegistry()
 {
     HKEY hKey;
     LONG lResult;
-    DWORD dwData;
+    DWORD dwShowWarningData, dwLayout;
     DWORD cbData = sizeof(DWORD);
 
-    /* Set the structure member to TRUE */
+    /* Set the structure members to TRUE */
     Globals.bShowWarning = TRUE;
+    Globals.bIsEnhancedKeyboard = TRUE;
 
     /* Open the key, so that we can query it */
     lResult = RegOpenKeyExW(HKEY_CURRENT_USER,
@@ -40,7 +41,7 @@ BOOL LoadDataFromRegistry()
                                L"ShowWarning",
                                0,
                                0,
-                               (BYTE *)&dwData,
+                               (BYTE *)&dwShowWarningData,
                                &cbData);
 
     if (lResult != ERROR_SUCCESS)
@@ -51,7 +52,25 @@ BOOL LoadDataFromRegistry()
     }
 
     /* Load the data value (it can be either FALSE or TRUE depending on the data itself) */
-    Globals.bShowWarning = (dwData != 0);
+    Globals.bShowWarning = (dwShowWarningData != 0);
+
+    /* Query the key */
+    lResult = RegQueryValueExW(hKey,
+                               L"IsEnhancedKeyboard",
+                               0,
+                               0,
+                               (BYTE *)&dwLayout,
+                               &cbData);
+
+    if (lResult != ERROR_SUCCESS)
+    {
+        /* Bail out and return FALSE if we fail */
+        RegCloseKey(hKey);
+        return FALSE;
+    }
+
+    /* Load the dialog layout value */
+    Globals.bIsEnhancedKeyboard = (dwLayout != 0);
     
     /* If we're here then we succeed, close the key and return TRUE */
     RegCloseKey(hKey);
@@ -62,7 +81,7 @@ BOOL SaveDataToRegistry()
 {
     HKEY hKey;
     LONG lResult;
-    DWORD dwData;
+    DWORD dwShowWarningData, dwLayout;
 
     /* If no key has been made, create one */
     lResult = RegCreateKeyExW(HKEY_CURRENT_USER,
@@ -82,14 +101,31 @@ BOOL SaveDataToRegistry()
     }
 
     /* The data value of the subkey will be appended to the warning dialog switch */
-    dwData = Globals.bShowWarning;
+    dwShowWarningData = Globals.bShowWarning;
 
     lResult = RegSetValueExW(hKey,
                              L"ShowWarning",
                              0,
                              REG_DWORD,
-                             (BYTE *)&dwData,
-                             sizeof(dwData));
+                             (BYTE *)&dwShowWarningData,
+                             sizeof(dwShowWarningData));
+
+    if (lResult != ERROR_SUCCESS)
+    {
+        /* Bail out and return FALSE if we fail */
+        RegCloseKey(hKey);
+        return FALSE;
+    }
+
+    /* The value will be appended to the layout dialog */
+    dwLayout = Globals.bIsEnhancedKeyboard;
+
+    lResult = RegSetValueExW(hKey,
+                             L"IsEnhancedKeyboard",
+                             0,
+                             REG_DWORD,
+                             (BYTE *)&dwLayout,
+                             sizeof(dwLayout));
 
     if (lResult != ERROR_SUCCESS)
     {