Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor prakashsainani's Avatar
    Join Date
    Jul 2003
    Posts
    63
    hi,

    I include the following code in a CAknSettingItemList derived class. There are binary items in my listbox. The font remains unchanged.

    _LIT(KFontName, "Arial");
    TFontSpec aFontSpec(KFontName, 8);
    TFontStyle aFontStyle = TFontStyle (EPostureUpright,EStrokeWeightNormal,EPrintPosNormal);
    aFontSpec.iFontStyle = aFontStyle;
    CFont* aFont = iCoeEnv->CreateScreenFontL(aFontSpec);
    ListBox()->ItemDrawer()->ColumnData()->SetSubCellFontL(TInt(0),aFont);

    Also did anyone successfully use word-wrap function.

    Thanks in advance

    prakash

  2. #2
    Regular Contributor prakashsainani's Avatar
    Join Date
    Jul 2003
    Posts
    63
    Hi

    The code seems to be correct but just needs to be called after the construction is over. It workd ok and the minimum font-sixe seems to be 8 (fair-enough for user), but for me my text still overflows.

    Did ne1 use the fn WordWrapListItem from CFormattedCellListBoxItemDrawer . Why aren't these fns documented.

    Can ne1 help me with fitting large text in a setting-item. I saw that Siemens file manager generates rolling-text when its too long to display. How to do that or to have multiline text in setting items.

    plz help.

    thanks
    prakash

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved