×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    63

    changing setting list font/word-wrap

    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
    Join Date
    Jul 2003
    Posts
    63

    Solved it but word-wrap

    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
  •  
×