×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    159

    list and scrollbar in right-to-left languages

    Hi,

    Short story
    I need to know how to find out if the phone's selected language (the global one) is written left-to-right or right-to-left.

    Longer story, for those interested
    My application uses a CAknColumnListBox control, and also an external scrollbar (not directly bound to the list).

    Everything works fine, except when the phone is set to use a right-to-left language, such as Arabic or Hebrew. In this case, the order of the list columns is reversed (first column at the right-most side, last column at the left), and the scroll appears on the left side.

    Although this actually makes sense, I need to control this behavior, because:
    1. The list is left-to-right by nature (it includes technical English-only terms).
    2. Unlike standard lists, when using CAknColumnListBox directly, it does not properly lay out its scroll bars. So I'm using an external scroll bar, laying out the list myself to make room for the scrollbar. Therefore, I need to know on which side would the scrollbar appear.


    Thanks,
    Nadav

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,697

    Re: list and scrollbar in right-to-left languages

    If you search for *right*left* in the SDK Help, you will find AknTextUtils::CurrentScriptDirectionality. It might help you. The other hits may also be useful.

  3. #3
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    159

    Re: list and scrollbar in right-to-left languages

    Quote Originally Posted by wizard_hu_ View Post
    If you search for *right*left* in the SDK Help, you will find AknTextUtils::CurrentScriptDirectionality. It might help you. The other hits may also be useful.
    Hi wizard_hu_

    I've searched the Wiki and the forums for right and left, scroll bars, languages, etc., and found nothing. Not sure what you mean by the SDK Help: Following your tip I've launched D:\Symbian\9.3\S60_3rd_FP2_Beta\S60doc\eclipse.exe, searching over there for *right*left*, but got no results. Do you mean something else?

    Anyway, thanks a lot for the answer :).

    Nadav

  4. #4
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: list and scrollbar in right-to-left languages

    Hi,
    Search for AknTextUtils in your sdk help. you would find it there.

    Priju

  5. #5
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    159

    Re: list and scrollbar in right-to-left languages

    Quote Originally Posted by Priju Jacob Paul View Post
    Hi,
    Search for AknTextUtils in your sdk help. you would find it there.

    Priju

    Thanks, Priju Jacob Paul, but what I meant to ask is - where did wizard_hu_ mean I should search for unknown stuff next time. Once I have the lead (AknTextUtils::CurrentScriptDirectionality()) I can simply google it, so current problem is solved.

    Thanks again,
    Nadav

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

    Re: list and scrollbar in right-to-left languages

    Yeah, FP2's help is a big mistake I think - the search would work with any other SDK Help. Anyway, the idea is there: AknTextUtils::CurrentScriptDirectionality

  7. #7
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    159

    Re: list and scrollbar in right-to-left languages

    In that case I will download SDK help of another version.

    Thanks a lot for both tips.

  8. #8
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    159

    Re: list and scrollbar in right-to-left languages

    Quote Originally Posted by wizard_hu_ View Post
    If you search for *right*left* in the SDK Help, you will find AknTextUtils::CurrentScriptDirectionality. It might help you. The other hits may also be useful.
    Well,

    It turns out the required method is actually:

    AknLayoutUtils::LayoutMirrored()

    AknTextUtils::CurrentScriptDirectionality() gives the directionality of the current input language (in text editors, probably), while AknLayoutUtils::LayoutMirrored() gives the layout direction of the UI.

    Cheers,
    Nadav

Similar Threads

  1. settings list scrollbar
    By dingdan in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-05-10, 10:38
  2. Scroll bars in a list box (Series 60)
    By krnsoft in forum Symbian User Interface
    Replies: 30
    Last Post: 2007-02-05, 06:12
  3. Double Style ListBox ScrollBar Not Diplayed
    By mubx2000 in forum Symbian
    Replies: 3
    Last Post: 2006-09-12, 14:28
  4. Scrollbar problem in Listbox.
    By mahavirjain in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-06-27, 11:30
  5. scrollbar fails to be created for CAknSettingItemList
    By liammurray in forum Symbian User Interface
    Replies: 0
    Last Post: 2002-05-23, 23:26

Posting Permissions

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