uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomnotifier/src/bctestdomnotifiercontainer.cpp
equal
deleted
inserted
replaced
14 * Description: container |
14 * Description: container |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include <eikenv.h> |
18 #include <eikenv.h> |
19 #include <AknMarqueeControl.h> |
|
20 #include <aknlayoutscalable_avkon.cdl.h> |
|
21 |
|
22 #include "bctestdomnotifiercontainer.h" |
19 #include "bctestdomnotifiercontainer.h" |
23 |
20 |
24 #define KAknAtListGray TRgb( 0xaaaaaa ) |
21 #define KAknAtListGray TRgb( 0xaaaaaa ) |
25 |
22 |
26 |
23 |
64 CWindowGc& gc = SystemGc(); |
61 CWindowGc& gc = SystemGc(); |
65 gc.SetPenStyle( CGraphicsContext::ENullPen ); |
62 gc.SetPenStyle( CGraphicsContext::ENullPen ); |
66 gc.SetBrushColor( KAknAtListGray ); |
63 gc.SetBrushColor( KAknAtListGray ); |
67 gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); |
64 gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); |
68 gc.DrawRect( aRect ); |
65 gc.DrawRect( aRect ); |
69 |
|
70 _LIT( KStart, "DRAW" ); |
|
71 const TBuf<32> txt( KStart ); |
|
72 TRect rect( TRect(1,1,99,99) ); |
|
73 const CFont* font = CEikonEnv::Static()->NormalFont(); |
|
74 TAknTextComponentLayout textlayout; |
|
75 CAknMarqueeControl* marcontrol = CAknMarqueeControl::NewL(); |
|
76 CleanupStack::PushL( marcontrol ); |
|
77 |
|
78 marcontrol->DrawText( gc, rect, textlayout, txt, font ); |
|
79 CleanupStack::PopAndDestroy(); |
|
80 |
66 |
81 } |
67 } |
82 |
68 |
83 // --------------------------------------------------------------------------- |
69 // --------------------------------------------------------------------------- |
84 // CBCDomainTestNotifierContainer::CountComponentControls |
70 // CBCDomainTestNotifierContainer::CountComponentControls |