TKeyResponse ChellogridAppView::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType) { if (aType!=EEventKey) return EKeyWasNotConsumed;
if (iGrid) return iGrid->OfferKeyEventL(aKeyEvent,aType); else return EKeyWasNotConsumed;
}
// ----------------------------------------------------------------------------- // ChellogridAppView::ChellogridAppView() // C++ default constructor can NOT contain any code, that might leave. // ----------------------------------------------------------------------------- // ChellogridAppView::ChellogridAppView() { // No implementation required }
// ----------------------------------------------------------------------------- // ChellogridAppView::Draw() // Draws the display. // ----------------------------------------------------------------------------- // void ChellogridAppView::Draw( const TRect& aRect ) const { // Get the standard graphics context CWindowGc& gc = SystemGc(); gc.SetPenStyle( CGraphicsContext::ENullPen ); gc.SetBrushColor( LABEL_BACKGROUND_COLOR ); gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); gc.DrawRect( aRect ); // Gets the control's extent TRect drawRect( Rect());
// Clears the screen gc.Clear( drawRect );
}
// ----------------------------------------------------------------------------- // ChellogridAppView::SizeChanged() // Called by framework when the view size is changed. // ----------------------------------------------------------------------------- // void ChellogridAppView::SizeChanged() { DrawNow(); } // End of File
By implementing iGrid->SetExtent(TPoint(70,70),TSize(150, 150)); grid appears:-) , but by using AknListBoxLayouts::SetupFormGfxCell( *iGrid, iGrid->ItemDrawer(),0, 0, 0, 0, 0, 100, iGrid->ItemHeight(), TPoint( 0, 0 ), TPoint( 100, iGrid->ItemHeight() )); () )); application is closed on emulator! and in grid, text is not dispayed, why so?
Forum posts: 76
AknListBoxLayouts::SetupFormGfxCell( *iGrid, iGrid->ItemDrawer(), 0, 0, 0, 0, 0, 100, iGrid->ItemHeight(), TPoint( 0, 0 ), TPoint( 100, iGrid->ItemHeight() ));
..
KiraN Puranik
Forum posts: 26
By implementing iGrid->SetExtent(TPoint(70,70),TSize(150, 150)); grid appears:-) , but by using
AknListBoxLayouts::SetupFormGfxCell( *iGrid, iGrid->ItemDrawer(),0, 0, 0, 0, 0, 100, iGrid->ItemHeight(),
TPoint( 0, 0 ), TPoint( 100, iGrid->ItemHeight() ));
() )); application is closed on emulator! and in grid, text is not dispayed, why so?
plz reply...
Meetee
Forum posts: 26
My problem is solved..
Any pointers regarding menu grid?
Thanx
Meetee