74 { |
74 { |
75 MakeVisible( EFalse ); |
75 MakeVisible( EFalse ); |
76 } |
76 } |
77 |
77 |
78 // --------------------------------------------------------------------------- |
78 // --------------------------------------------------------------------------- |
|
79 // Test if transparency is supported by this control |
|
80 // --------------------------------------------------------------------------- |
|
81 // |
|
82 TBool CPeninputFloatingCtrl::SupportTransparent() const |
|
83 { |
|
84 return iSupportTransparent; |
|
85 } |
|
86 |
|
87 // --------------------------------------------------------------------------- |
79 // Symbian constructor |
88 // Symbian constructor |
80 // --------------------------------------------------------------------------- |
89 // --------------------------------------------------------------------------- |
81 // |
90 // |
82 void CPeninputFloatingCtrl::BaseConstructL() |
91 void CPeninputFloatingCtrl::BaseConstructL() |
83 { |
92 { |
84 RWindowGroup& wg = CCoeEnv::Static()->RootWin(); |
93 RWindowGroup& wg = CCoeEnv::Static()->RootWin(); |
85 CreateWindowL( wg ); |
94 CreateWindowL( wg ); |
86 SetComponentsToInheritVisibility(); |
95 SetComponentsToInheritVisibility(); |
87 Window().SetRequiredDisplayMode( EColor16MA ); |
96 Window().SetRequiredDisplayMode( EColor16MA ); |
|
97 TInt err = Window().SetTransparencyAlphaChannel(); |
|
98 iSupportTransparent = ( KErrNone == err ); |
88 MakeVisible( EFalse ); |
99 MakeVisible( EFalse ); |
89 ActivateL(); |
100 ActivateL(); |
90 } |
101 } |
91 |
102 |
92 // --------------------------------------------------------------------------- |
103 // --------------------------------------------------------------------------- |