×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    56

    Is it possible to dim one item in a CAknEnumeratedTextPopupSettingItem

    Hi all

    I would like to disable(dim) one item in a CAknEnumeratedTextPopupSettingItem that is loaded from resource.

    I have seen the Dynamic Setting List Example and am aware of that i can create my settings from code instead of resource. But I already have a bunch of settings created from resource and don't want to change them if possible.

    So is it possible to change the visibility of a single item in a CAknEnumeratedTextPopupSettingItem?

    Thanks!

  2. #2
    Nokia Developer Moderator
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: Is it possible to dim one item in a CAknEnumeratedTextPopupSettingItem

    Try to use SetHidden() method. Check this - How to hide/show a setting item depending upon other setting item

  3. #3
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    56

    Re: Is it possible to dim one item in a CAknEnumeratedTextPopupSettingItem

    Thanks, but that doesn't seem to solve my problem.

    Say I have a setting item that have 3 possible values. I would like to dim one of them, and still be able to choose between the remaining two.

    But many thanks for your reply.

  4. #4
    Nokia Developer Moderator
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: Is it possible to dim one item in a CAknEnumeratedTextPopupSettingItem

    Try to get the value array and then remove unwanted entries.
    Something like this:
    Code:
        // Get the value array
        CArrayPtr<CAknEnumeratedText>* texts = this->EnumeratedTextArray();
        ...
        texts->Delete(/*Some Index*/);

  5. #5
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    56

    Re: Is it possible to dim one item in a CAknEnumeratedTextPopupSettingItem

    Thanks!

    I'll try that.

    Cheers

Similar Threads

  1. SMS using Nokia PC Suite API
    By liso2828 in forum PC Suite API and PC Connectivity SDK
    Replies: 39
    Last Post: 2011-01-31, 10:37
  2. How to dim a list box item
    By Deepa msc in forum Symbian
    Replies: 2
    Last Post: 2008-01-28, 07:24
  3. Replies: 4
    Last Post: 2006-12-01, 12:07
  4. how to get the position of a cascaded item in a menu?
    By GeKI in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-05-18, 15:47
  5. Dim cascade item from a menu pane
    By sguillem in forum Symbian User Interface
    Replies: 3
    Last Post: 2003-05-12, 03:44

Posting Permissions

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