equal
deleted
inserted
replaced
87 //layout is extended by popup |
87 //layout is extended by popup |
88 TRect rect = aRect; |
88 TRect rect = aRect; |
89 rect.Intersection( iLayoutClipRect ); |
89 rect.Intersection( iLayoutClipRect ); |
90 TPoint pos = rect.iTl - iLayoutClipRect.iTl; |
90 TPoint pos = rect.iTl - iLayoutClipRect.iTl; |
91 gc.BitBlt( pos, iBitmap, rect ); |
91 gc.BitBlt( pos, iBitmap, rect ); |
92 // Add to fix NGA refresh problem |
|
93 CCoeEnv::Static()->WsSession().Flush(); |
|
94 CCoeEnv::Static()->WsSession().Finish(); |
|
95 return; |
92 return; |
96 } |
93 } |
97 |
94 |
98 gc.BitBlt(aRect.iTl,iBitmap,aRect); |
95 gc.BitBlt(aRect.iTl,iBitmap,aRect); |
99 // Add to fix NGA refresh problem |
|
100 CCoeEnv::Static()->WsSession().Flush(); |
|
101 CCoeEnv::Static()->WsSession().Finish(); |
|
102 } |
96 } |
103 |
97 |
104 TInt CPenUiWndCtrl::WndPriority() |
98 TInt CPenUiWndCtrl::WndPriority() |
105 { |
99 { |
106 return iPriority; |
100 return iPriority; |
175 |
169 |
176 TRect demarcation; |
170 TRect demarcation; |
177 CAknTransitionUtils::GetDemarcation(CAknTransitionUtils::EPopup, |
171 CAknTransitionUtils::GetDemarcation(CAknTransitionUtils::EPopup, |
178 demarcation); |
172 demarcation); |
179 GfxTransEffect::SetDemarcation(this, demarcation); |
173 GfxTransEffect::SetDemarcation(this, demarcation); |
|
174 |
|
175 //todo fix NGA effects error |
|
176 CCoeEnv::Static()->WsSession().Finish(); |
|
177 User::After( 1 ); |
180 |
178 |
181 this->MakeVisible(ETrue); |
179 this->MakeVisible(ETrue); |
182 |
180 |
183 GfxTransEffect::NotifyExternalState(ECaptureComponentsEnd, (const TDesC8*)this); |
181 GfxTransEffect::NotifyExternalState(ECaptureComponentsEnd, (const TDesC8*)this); |
184 GfxTransEffect::End(this); |
182 GfxTransEffect::End(this); |
215 |
213 |
216 TRect demarcation; |
214 TRect demarcation; |
217 CAknTransitionUtils::GetDemarcation(CAknTransitionUtils::EPopup, |
215 CAknTransitionUtils::GetDemarcation(CAknTransitionUtils::EPopup, |
218 demarcation); |
216 demarcation); |
219 GfxTransEffect::SetDemarcation(this, demarcation); |
217 GfxTransEffect::SetDemarcation(this, demarcation); |
|
218 |
|
219 //todo fix NGA effects error |
|
220 CCoeEnv::Static()->WsSession().Finish(); |
|
221 User::After( 1 ); |
220 |
222 |
221 this->MakeVisible(EFalse); |
223 this->MakeVisible(EFalse); |
222 |
224 |
223 GfxTransEffect::NotifyExternalState(ECaptureComponentsEnd, (const TDesC8*)this); |
225 GfxTransEffect::NotifyExternalState(ECaptureComponentsEnd, (const TDesC8*)this); |
224 GfxTransEffect::End(this); |
226 GfxTransEffect::End(this); |
283 else |
285 else |
284 //DrawNow(aRect); |
286 //DrawNow(aRect); |
285 { |
287 { |
286 iInvalidateRect = aRect; |
288 iInvalidateRect = aRect; |
287 Window().Invalidate(aRect); |
289 Window().Invalidate(aRect); |
288 } |
290 DrawNow(aRect); |
|
291 } |
|
292 CCoeEnv::Static()->WsSession().Flush(); |
|
293 CCoeEnv::Static()->WsSession().Finish(); |
289 } |
294 } |
290 |
295 |
291 void CPenUiWndCtrl::OnActivate(EditorType aType) |
296 void CPenUiWndCtrl::OnActivate(EditorType aType) |
292 { |
297 { |
293 //TBool dim = IsDimmed(); |
298 //TBool dim = IsDimmed(); |
507 |
512 |
508 void CPenUiPopWnd::Draw(const TRect& /*aRect*/) const |
513 void CPenUiPopWnd::Draw(const TRect& /*aRect*/) const |
509 { |
514 { |
510 CWindowGc& gc = SystemGc(); |
515 CWindowGc& gc = SystemGc(); |
511 gc.BitBlt( TPoint(0,0), iBitmap, iRectInLayout ); |
516 gc.BitBlt( TPoint(0,0), iBitmap, iRectInLayout ); |
512 // Add to fix NGA refresh problem |
517 } |
513 CCoeEnv::Static()->WsSession().Flush(); |
518 |
514 CCoeEnv::Static()->WsSession().Finish(); |
|
515 } |
|
516 |
|