×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    3

    CAknGrid cell formatting

    Hi All,

    A couple of questions...

    1. Is it possible to create a CAknGrid and format individual cells differently? For example some cells would have bold text and some regular.

    The SDK documentation is rather scarce on this topic and the Grid example does not include this specifically.

    2. How do I set grid lines on?

    Many thanks in advance,
    Paul

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167
    Hi

    Q1: AFAIK all cells use same formatting information, so the answer is No.

    Q2: What you mean by setting lines on ?

    yucca

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    3
    Hi Yukka,

    First, thank you for the response.

    I would like to set grid-lines so that each cell is bordered. The end goal would be a look something like the Series 60 calendar application's month view.

    I am guessing that the only way to format individual cells is to create many CAknGrid instances and manage their position within a view. There would be a title grid along the top with the days of the week and a main CAknGrid with numbered days of the month. The user would only be able to select from the main CAknGrid which would contain the dates. They would not be able to select a cell from a title CAknGrid.

    This brings up one question. Do you know how I would turn off the selection functionality in the title CAknGrid?

    Many thanks in advance,
    Paul

  4. #4
    Regular Contributor
    Join Date
    Sep 2003
    Posts
    169

    CAknGrid cell formatting

    Hey,

    It is possilbe to format each cell differently. You can do that by using the SetupFormGfxCell or any of its variants from the AKnListBoxLayouts class. The grid is is fact a modified listbox so pretty much anything you can do with a listbox can be done with a grid. Don't have any documentation on this method besides the SDK though which isn't muchb ut at least you know it can be done.

    Regards, Aljaz

  5. #5
    Registered User
    Join Date
    Mar 2004
    Posts
    8
    Hi Paul,

    Have you finished your calendar grid?

    I'm also doing a grid of similar type, so would you mind telling me how do you do it, coz I'm new to Symbian programming.

    I've tried to use the CAknCaleMonthStyleGrid, but can't make it look like Series60's calendar.

    Thanks

    Eddie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×