Opened 9 years ago

Closed 9 years ago

#698 closed defect/bug (fixed)

Disable WinMo SIP-keyboard in fullscreen mode

Reported by: thomas0782 Owned by: KaZeR
Priority: major Milestone: version 0.5.0
Component: port/wince Version: git master
Severity: Keywords: windows mobile osd keyboard fullscreen
Cc: nick@…

Description

In fullscreen mode, sip is still shown. Patch disables sip when fullscreen is on and enables it when fullscreen ist off.

Index: navit/navit/graphics/win32/graphics_win32.c
===================================================================
--- navit/navit/graphics/win32/graphics_win32.c (Revision 3719)
+++ navit/navit/graphics/win32/graphics_win32.c (Arbeitskopie)
@@ -530,15 +530,24 @@

 #ifdef HAVE_API_WIN32_CE
     HWND hwndTaskbar = FindWindow(L"HHTaskBar", NULL);
+    HWND hwndSip = FindWindow(L"MS_SIPBUTTON", NULL);

        if (on) {
         ShowWindow(hwndTaskbar, SW_HIDE);
         MoveWindow(g_hwnd, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), FALSE);
+
+        // deactivate the SIP button
+        ShowWindow(hwndSip, SW_HIDE);
+
        } else {
         ShowWindow(hwndTaskbar, SW_SHOW);
         RECT taskbar_rect;
         GetWindowRect(  hwndTaskbar, &taskbar_rect);
         MoveWindow(g_hwnd, 0, taskbar_rect.bottom, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN) - taskbar_rect.bottom, FALSE);
+
+        // activate the SIP button
+        ShowWindow(hwndSip, SW_SHOW);
+
     }

 #else
@@ -1533,6 +1542,10 @@
     dbg(0,"enter\n");
 #ifdef HAVE_API_WIN32_CE
     HWND hwndTaskbar = FindWindow(L"HHTaskBar", NULL);
+    HWND hwndSip = FindWindow(L"MS_SIPBUTTON", NULL);
+
+    // activate the SIP button
+    ShowWindow(hwndSip, SW_SHOW);
     ShowWindow(hwndTaskbar, SW_SHOW);
 #endif

A more advanced solution would be, to show the sip only in menu mode or show it instead of the navit-keyboard.

Change History (2)

comment:1 Changed 9 years ago by thomas0782

  • Component changed from core to port/wince

comment:2 Changed 9 years ago by number6

  • Cc nick@… added
  • Keywords windows mobile osd keyboard fullscreen added
  • Milestone set to version 0.5.0
  • Resolution set to fixed
  • Status changed from new to closed

Added in Revision 3721.

Thanks Thomas

Note: See TracTickets for help on using tickets.