textinput/peninputarc/src/peninputlayoutcontrol/peninputfloatctrl.cpp
branchRCL_3
changeset 11 c8fb4cf7b3ae
parent 5 a47de9135b21
--- a/textinput/peninputarc/src/peninputlayoutcontrol/peninputfloatctrl.cpp	Tue Apr 27 16:59:43 2010 +0300
+++ b/textinput/peninputarc/src/peninputlayoutcontrol/peninputfloatctrl.cpp	Tue May 11 16:31:42 2010 +0300
@@ -76,6 +76,15 @@
     }
 
 // ---------------------------------------------------------------------------
+// Test if transparency is supported by this control
+// ---------------------------------------------------------------------------
+//
+TBool CPeninputFloatingCtrl::SupportTransparent() const
+    {
+    return iSupportTransparent;
+    }
+
+// ---------------------------------------------------------------------------
 // Symbian constructor
 // ---------------------------------------------------------------------------
 //
@@ -85,6 +94,8 @@
     CreateWindowL( wg );
     SetComponentsToInheritVisibility();
     Window().SetRequiredDisplayMode( EColor16MA );
+    TInt err = Window().SetTransparencyAlphaChannel();
+    iSupportTransparent = ( KErrNone == err );
     MakeVisible( EFalse );
     ActivateL();
     }