Hi All,
As per basics font are adjusted by fontbitmap server.I want to change my font such as it won't overlap to grid boundry.Presently it is overlapping ! I tried so many thing but not able to find out fesible solution.
Thanks ,
Hi All,
As per basics font are adjusted by fontbitmap server.I want to change my font such as it won't overlap to grid boundry.Presently it is overlapping ! I tried so many thing but not able to find out fesible solution.
Thanks ,
Thanks & Regards,
Chirag
You can check also SetSubCellSizeL,SubCellPosition and SubCellBaselinePosCode:// --------------------------------------------------------- // CGridContainer::SizeChanged() // Called by framework when the view size is changed void CGridContainer::SizeChanged() { CGraphicsDevice* screenDevice = iCoeEnv->ScreenDevice(); TFontSpec fontSpec2 = CCoeEnv::Static()->NormalFont()->FontSpecInTwips(); fontSpec2.iTypeface.iName=_L("Latin"); fontSpec2.iHeight = 50; CFont* fontText; screenDevice->GetNearestFontInTwips(fontText,fontSpec2); iGrid->ItemDrawer()->FormattedCellData()->SetSubCellFontL(1,fontText); CCoeEnv::Static()->ReleaseScreenFont(fontText); ... }
Thanks for your kind reply.
Thanks & Regards,
Chirag
Hi chirag and rihoe
can u tell me how to change the text colour and background colour for a specific cell.I men i m having a grid with 3 row n 3 coloumn and i want to set text colour for first cell black and background is red.is it possible if it is plz guide me how can i do this.
Thanks
Mobile_Don
AFAIK, you can't do it cell-by-cell basis. You can set to have different colors for active cell.
"I only know that I know nothing." (Socrates)
Hi
thanx for help sir
actually im having 3*3 grid.it means i m having item0 to item8 in my cell if oi m not wrong.coz there is 3 column and 3 row.so every row has 3 items.if i need to set text colour for first item of first row and second item of third row.then how can i do that.
i m little bit confused with "active cell".is it selected item or that grid view which is showing on my container.
here i m really confused with subcell number.when i m trying to set colour for a subcell using this
iGrid->ItemDrawer()->ColumnData()->SetSubCellColorsL(1,gridColors); //it works for whole grid
but if i go to for change the second item colour using this
iGrid->ItemDrawer()->ColumnData()->SetSubCellColorsL(2,gridColors);
its not work here what i have found that my cell number is 1 not 2.then what will be the number of second item in first row.
sorry for write long text but i m really confused with grid.
plz help me
Mobile_Don
Grid is just wide listbox.
In Grid you have cells (3x3 in your case). Each cell can contain subcells (if you have icon and text then it is 2 subcells in 1 cell)
You can give different colors to different subcells , but these work for all cells.
Active cell is the one that has focus (it is selected item) - if you move your cursor around then focus changes.
"I only know that I know nothing." (Socrates)
Thanx sir i got it.and i have changed font style for different subcells.so i ll manage with it.and it works for particuler subcell not for all thats y i m looking similer things for background colour or text colour.
one more question is that actually i m working to make a calendar app look like nokia i have read lots of post regarding with it.there is a class CAknCaleMonthStyleGrid but i did not use it and did not get any clue to use it.so after this i came on selection grid so i designed 8*7 grid view.but its not working like calendar.
can u give me some guide line for making similer calendar.
any help plz
Mobile_Don
Hi
Can i make a grid transparent.i mean is it possible that a grid can build default background rather than its own background.coz i want to draw somthing on container but whenever i try this it is overlaping by grid background.
i found a method SetDrawBackground() but its not working for me.is this function can solve my problem.
plz just give me a hint.
Thanks in Advance
Mobile_Don