javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtcombo.cpp
branchRCL_3
changeset 24 6c158198356e
parent 19 71c436fe3ce0
--- a/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtcombo.cpp	Thu Jul 15 18:31:06 2010 +0300
+++ b/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtcombo.cpp	Thu Aug 19 09:48:13 2010 +0300
@@ -294,7 +294,7 @@
 
     if (pressed != iPressed)
     {
-        Redraw();
+        GetShell().UpdateHighlight(ETrue); // draw now
     }
 
     PostMouseEventL(aPointerEvent);
@@ -468,6 +468,7 @@
         {
             if (!iOpen)
             {
+                Invalidate(Rect());
                 DoOpenL();
                 iDisplay.PostDefaultSelectionEventL(iPeer);
             }
@@ -520,6 +521,16 @@
 }
 
 // ---------------------------------------------------------------------------
+// CSwtCombo::PressBackgroundPolicy
+// From MSwtControl
+// ---------------------------------------------------------------------------
+//
+TInt CSwtCombo::PressBackgroundPolicy() const
+{
+    return EEmbeddedPressBackground;
+}
+
+// ---------------------------------------------------------------------------
 // CSwtCombo::ComputeTrim
 // From MSwtScrollable
 // ---------------------------------------------------------------------------
@@ -1346,7 +1357,9 @@
 
         // Get new selection
         iPrevSelIdx = iCombo->SelectedIndex();
-        Redraw();
+
+        // Remove the pressed down highlight
+        GetShell().UpdateHighlight(ETrue);
     }
 }