×

Discussion Board

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

    How to make settinglist item dimmed

    How I can make settinglist item dimmed so it cannot be changed.
    Do I need to add some flags to my resource definitions or use whole different control or is it possible to make that dim in my code? The item can be dimmed permanently.
    Here is my resource definition:

    RESOURCE AVKON_SETTING_ITEM_LIST r_im_mysettinglist_item_list
    {
    title = "My List";
    items =
    {

    AVKON_SETTING_ITEM
    {
    identifier = EMyName;
    setting_page_resource = r_my_settingpage_name;
    name = "Name";
    }
    }


    RESOURCE AVKON_SETTING_PAGE r_my_settingpage_name
    {
    label = "Name";
    type = EEikCtEdwin;
    editor_resource_id = r_my_edwin;
    }

    RESOURCE EDWIN r_edwin
    {
    width = 1;
    lines = 1;
    maxlength = 20;
    }

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    26
    Is it really so that there´s no way to protect setting items? All I want to do is that the setting item and it´s value is shown, but user can´t alter it and to show that feature the item should be dimmed. Is there a specific control for this?

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    11

    Re: How to make settinglist item dimmed

    I have the sam problem. Item doens't become dimmed...at least with the following code:

    TListItemProperties properties;
    CSettingListBoxItemDrawer* drawer = ( CSettingListBoxItemDrawer* )ListBox()->ItemDrawer();
    properties = drawer->Properties( itemIndex );
    properties.SetDimmed( ETrue );
    drawer->SetProperties( itemIndex, properties );

    Though im not sure where these properties should be set. Anyways ...doesn't work!

    I'd appreciate if somebody could help me on this. Thanks!

    P

Posting Permissions

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