×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    318

    I don't understand '"1\t"<0x6BCD><0x725B>' thingy in ***.LOC files...

    Hi,

    I finally managed to solve my multiple selection listbox problem. I discovered that the cause of the problem was in the .LOC file.

    May i ask, what the difference is between using:
    ------------------------------------------------------------------------------------------
    #define qtn_f2f_list_1_array_item_1 "\tPersonal"
    #define qtn_f2f_list_1_array_item_2 "\tFriend"
    #define qtn_f2f_list_1_array_item_3 "\tMACHAT"
    #define qtn_f2f_list_1_array_item_4 "\tFREAK"
    #define qtn_f2f_list_1_array_item_5 "\tNIAMAWORKS"
    #define qtn_f2f_list_1_array_item_6 "\tADVOWORKS"
    #define qtn_f2f_list_1_array_item_7 "\tBPR SUX"
    ------------------------------------------------------------------------------------------
    and using:
    ------------------------------------------------------------------------------------------
    // single item with graphic
    #ifdef __AVKON_APAC__
    #define qtn_aknexlist_item_sg1 "1\t"<0x5634>
    #define qtn_aknexlist_item_sg2 "1\t"<0x6BCD><0x725B>
    #define qtn_aknexlist_item_sg3 "1\t"<0x8001><0x864E>
    #define qtn_aknexlist_item_sg4 "1\t"<0x5154><0x5B50>
    #define qtn_aknexlist_item_sg5 "1\t"<0x9F99>
    #define qtn_aknexlist_item_sg6 "1\t"<0x86C7>
    #define qtn_aknexlist_item_sg7 "1\t"<0x9A6C>
    #define qtn_aknexlist_item_sg8 "1\t"<0x7EF5><0x7F8A>
    #define qtn_aknexlist_item_sg9 "1\t"<0x7334><0x5B50>
    #define qtn_aknexlist_item_sg10 "1\t"<0x9E1F>
    #define qtn_aknexlist_item_sg11 "1\t"<0x72D7>
    #define qtn_aknexlist_item_sg12 "1\t"<0x91CE><0x732A>
    #define qtn_aknexlist_item_sg13 "1\t"<0x5634><0x5634><0x5634>
    #define qtn_aknexlist_item_sg14 "1\t"<0x6BCD><0x725B><0x6BCD><0x725B>
    #define qtn_aknexlist_item_sg15 "1\t"<0x8001><0x864E><0x8001><0x864E>
    #else
    #define qtn_aknexlist_item_sg1 "1\taaaaaa"
    #define qtn_aknexlist_item_sg2 "1\tbbbbbb"
    #define qtn_aknexlist_item_sg3 "1\tcccccc"
    #define qtn_aknexlist_item_sg4 "1\tdddddd"
    #define qtn_aknexlist_item_sg5 "1\teeeeee"
    #define qtn_aknexlist_item_sg6 "1\tffffff"
    #define qtn_aknexlist_item_sg7 "1\tgggggg"
    #define qtn_aknexlist_item_sg8 "1\thhhhhh"
    #define qtn_aknexlist_item_sg9 "1\tiiiiii"
    #define qtn_aknexlist_item_sg10 "1\tjjjjjj"
    #define qtn_aknexlist_item_sg11 "1\tkkkkkk"
    #define qtn_aknexlist_item_sg12 "1\tllllll"
    #define qtn_aknexlist_item_sg13 "1\tmmmmmm"
    #define qtn_aknexlist_item_sg14 "1\tnnnnnn"
    #define qtn_aknexlist_item_sg15 "1\toooooo"
    #endif
    ------------------------------------------------------------------------------------------


    Well the first bunch of code doesn't work with my multiselect listbox with icons.

    The second bunch of code works, and is from AKNEXLIST

    I don't understand a few things here.

    1) What is __AVKON_APAC__? Why the if else statement there?

    2) Whats does all the "1\t"<0x91CE><0x732A> mean?
    What is the "1" in the "1\taaaaaa" supposed to be? My first guess would be that it represents a holder for an icon?
    Does it have something to do with the icons??
    How does it enable the icon-enabled multiple selection listbox to show?

    3) I guess the answer for (2) has something to do with why the first bunch of code doesn't seem to work with the listbox....

    Please help me clear up my confusion...

    Thanks!


    - aDvo -
    Last edited by advocatee; 2003-08-25 at 17:48.

  2. #2
    Registered User
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122
    1) APAC stands for Asia-Pacific. It's the build flag for Chinese versions of the Series 60 platform, and it's defined in bldvariant.hrh together with other platform-wide build flags.

    2) The <0x1234> strings are hex values of unicode characters. Since they are inside #ifdef __AVKON_APAC__, they probably represent Chinese characters.

    The "1\t" is part of the listbox string format --- see aknlists.h for the exact format for each listbox class. Example from aknlists.h:

    Code:
    /**
     * list_single_graphic_pane
     *
     * list item string format: "0\tTextLabel\t1\t2"
     * where 0,1,2 are index to the icon array 
     */
    
    class CAknSingleGraphicStyleListBox : public CEikColumnListBoxTypedef
    3) Yep, your listbox item strings are not correctly formatted.

    Lauri

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Seattle, WA USA
    Posts
    53
    More specifically:

    "1\t"<0x91CE><0x732A>

    concatenates the text number 1, a tab field separator, and two Chinese characters. The characters are defined in The Unicode Standard; they are code page 91, code CE and code page 73, code 2A (hexadecimal). To see what they mean, look them up in the standard or look for another definition of qtn_aknexlist_item_sg12.

    List boxes use tabs to separate fields.

  4. #4
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    318
    hm alrite
    thanks alot guys!!

Posting Permissions

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