×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    May 2008
    Location
    Budapest, Hungary
    Posts
    84

    Enumerated text setting item with icon?

    Hi everyone,

    I've been spending my last few days trying to figure out how (or if) it's possible to have an enumerated text setting list display icons for the different options.


    Up to now, I've subclassed CAknDialog and CAknSettingItemList to create a settings dialog from resource. It has two enumerated text settings and an Edwin control, and works fine.

    What I'm not sure about is, if I add icon IDs to the labels, and set up an icon array, will the icons show up? In which class should I set up the icon array then?

    Or if it's not possible this way, what should I do about it?

    Thank you in advance,
    Zsolt


    UPDATE:
    First, I added the icon indexes like this: "0\tSmile". When I loaded the icons with the dialog, into the CAknSettingItemList-derived class' ListBox, nothing happened.

    UPDATE2:
    Now I've changed the strings to: "\tSmile\t0". I'm getting the E32USER-CBase 21 panic (index out of range). I don't know yet what to do with it though.
    Last edited by VaradiZsolt; 2008-05-19 at 15:34. Reason: another new development

  2. #2
    Registered User
    Join Date
    Sep 2008
    Posts
    8

    Re: Enumerated text setting item with icon?

    I have the same problem with you. hope some one could heip us

  3. #3
    Regular Contributor
    Join Date
    May 2008
    Location
    Budapest, Hungary
    Posts
    84

    Re: Enumerated text setting item with icon?

    Quote Originally Posted by junnan321 View Post
    I have the same problem with you. hope some one could heip us
    I did solve it after all, but not in the usual way. We have access to the S60 source, so I copy-pasted a setting item's source and modified it to include the icon array.

    Unfortunately, I have no idea how to do it by public means. I think it's impossible.

  4. #4
    Registered User
    Join Date
    Sep 2008
    Posts
    8

    Re: Enumerated text setting item with icon?

    would you please send your code to me? I had been puzzled for few days, I want to study your solution, and see if it could be used in my project, thanks a lot!

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    8

    Re: Enumerated text setting item with icon?

    ps: My mail:junnan321@163.com
    MSN:junnan321@163.com


    please help me, thanks

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,752

    Re: Enumerated text setting item with icon?

    Do not expect an answer. Have you heard about "copyright" or "NDA", perhaps "lawsuit"?
    If you need something that apparently can not be achieved using what is publically available, you can still try the API Partnering: http://wiki.forum.nokia.com/index.ph...nering_Program

  7. #7
    Registered User
    Join Date
    Sep 2008
    Posts
    8

    Re: Enumerated text setting item with icon?

    Quote Originally Posted by wizard_hu_ View Post
    Do not expect an answer. Have you heard about "copyright" or "NDA", perhaps "lawsuit"?
    If you need something that apparently can not be achieved using what is publically available, you can still try the API Partnering: http://wiki.forum.nokia.com/index.ph...nering_Program
    Well, you are right, I forggot it because I am so eager to solve it. thanks for your mind.

  8. #8
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Enumerated text setting item with icon?

    Hi VaradiZsolt,

    so the only way how to achieve this was thorugh the access to the S60 platform source code?? No way with the public SDK?

    Thanks
    STeN

  9. #9
    Registered User
    Join Date
    Oct 2008
    Posts
    2

    Re: Enumerated text setting item with icon?

    hi Junnan,

    did you do with the displaying of icons in enumerated text setting item if you have done with that please send me the code as i am struggling with that.

  10. #10
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Enumerated text setting item with icon?

    AFAIK its not possible using the public API's, I wonder if using a single style list box which supports icons and then implement our custom draw would help or not, but using that you can achive something quite close to a setting item with icons, only you end up re-inventing quite a bit of wheel, otherwise opening a partnering case with Nokia could do the trick.
    Cheers,
    Mayank

Similar Threads

  1. Replies: 1
    Last Post: 2008-05-15, 07:59
  2. Audio file setting item
    By louisbotha in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-05-13, 11:11
  3. Enumerated text setting item
    By ab in forum Symbian
    Replies: 2
    Last Post: 2007-09-14, 12:01
  4. UI Problem: enumerated text setting item
    By hong.lam in forum Symbian
    Replies: 6
    Last Post: 2007-09-07, 12:27
  5. how to make empty enumerated text popup list
    By Komarov Dmitriy in forum Symbian
    Replies: 0
    Last Post: 2006-11-03, 15:28

Posting Permissions

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