×

Discussion Board

Results 1 to 2 of 2

Thread: Form Direction

  1. #1
    Regular Contributor
    Join Date
    Jan 2010
    Posts
    52

    Form Direction

    Hey guys,

    I have a MIDlet running on a Nokia S40 device. It displays a Form object. The form contains text in a right-to-left language. Is there any way to make the form's direction right-to-left to be compliant with my language?

    Thanks!

  2. #2
    Registered User
    Join Date
    Mar 2006
    Posts
    32

    Re: Form Direction

    Hi,

    Orientation of displayed text language is dependent on current Locale set in the device settings. If current locale of your device has LTR orientation then it will display all contents in the same irrespective of the langague of the text displayed.

    MOTOROLA provides a provision for handling this and setting the default Locale orientation of the device through a JAD attribute:
    http://developer.motorola.com/docsto...Languages.pdf/
    but it is specific to Motorola.

    For Handling the same on other devices you will have to check for the current device locale and then process your text to displayed based on that.

    Like in your case if your want text to be RTL reverse whole text and add white space in the begining of the text for equivalent to the device width - width of text to be displayed.

    Or much better approach will be to use UI Libraries like LWUIT for your application that provides inbuilt support for handling RTL Languages.

    Hope it will clear out some details.

    Regards,
    Aditya

Similar Threads

  1. Replies: 10
    Last Post: 2009-03-09, 09:09
  2. second form not getting key events
    By krsunil in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-12-10, 10:29
  3. Form troubles
    By matdodgson in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-12-06, 10:49
  4. Weird Form behaviour on N73
    By Damo2k in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2008-02-21, 15:43
  5. problems in creating multipage form
    By A.Vogel in forum Symbian User Interface
    Replies: 0
    Last Post: 2007-10-02, 08:16

Posting Permissions

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