×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    5

    How to show fulltext in a label of textfield in a Form

    Hi,

    I am developing a application on S40 5th edition platform which is a simple application form containing textfield when I run the application it is not showing complete text in the label of the textfield.

    I have creadted a textfield with the following code-
    txtTest = new TextField("Are you Appearing in class 10 or you have already passed class 10 then please enter the passing year and the name of the college/Institution the name of the board?", null, 500, TextField.ANY);

    While running the application it is showing as
    "Are you Appearing in class 10 or you have..."

    Please help to show the Complete Message on the mobile screen as

    "Are you Appearing in class 10 or you have already passed class 10 then please enter the passing year and the name of the college/Institution the name of the board?"

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: How to show fulltext in a label of textfield in a Form

    Hello kumar.modi,

    the label size is limited in Series 40 SDKs.

    Instead of using the TextField label for the purpose, you could try using Ticker instead:

    Ticker t;
    ..
    t=new Ticker("Are you Appearing in class 10 or you have already passed class 10 then please enter the passing year and the name of the college/Institution the name of the board?");
    ..
    form.setTicker(t);

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    5

    Re: How to show fulltext in a label of textfield in a Form

    Hi,

    But its a label of the input textfield not the separate label. Its a question for which user will type the answer in the Textfield.

    I have tried to run the app on two-three nokia mobile somewhere it is showing complete text in label of the input textfield and in one moblie (nokia 2700 classic) it is not showing complete text.

    Regards,
    kumar.modi


    Quote Originally Posted by r2j7 View Post
    Hello kumar.modi,

    the label size is limited in Series 40 SDKs.

    Instead of using the TextField label for the purpose, you could try using Ticker instead:

    Ticker t;
    ..
    t=new Ticker("Are you Appearing in class 10 or you have already passed class 10 then please enter the passing year and the name of the college/Institution the name of the board?");
    ..
    form.setTicker(t);

    Regards,
    r2j7

  4. #4
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: How to show fulltext in a label of textfield in a Form

    I have tried to run the app on two-three nokia mobile somewhere it is showing complete text in label of the input textfield and in one moblie (nokia 2700 classic) it is not showing complete text.
    Which two-three Nokia devices are you referring to?

    Those could be S60 devices which does not have the limit. Nokia 2700 classic is a Series 40 5th Edition, FP1 device and there the size of the TextField label is limited on those devices.

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  5. #5
    Registered User
    Join Date
    Dec 2009
    Posts
    5

    Re: How to show fulltext in a label of textfield in a Form

    Quote Originally Posted by r2j7 View Post
    Which two-three Nokia devices are you referring to?

    Those could be S60 devices which does not have the limit. Nokia 2700 classic is a Series 40 5th Edition, FP1 device and there the size of the TextField label is limited on those devices.

    Regards,
    r2j7
    I have checked on S40 3rd Edition FP 2, It's showing complete text in the label. Also checked on the actual Nokia 3110 mobile set. But not working S40 5th Edition and 6th Edition.

    Please suggest.

  6. #6
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    69

    Re: How to show fulltext in a label of textfield in a Form

    Hii,

    try using StringItem...

    Code:
    StringItem label = new StringItem(" ", "Are you Appearing in class 10 or you have already passed class 10 then please enter the passing year and the name of the college/Institution the name of the board?");
    append this 'label' before ur TextField.

    Hope this will solve ur problem


    Nikesh~
    Enthusiastic

  7. #7
    Registered User
    Join Date
    Dec 2009
    Posts
    5

    Re: How to show fulltext in a label of textfield in a Form

    Hi,

    But my question is something working in older version (S40 S40 3rd Edition FP 2) Why it is not working in Series 40 5th Edition and 6th edition?

    Or
    I am missing something?

    Is there any documentation available that this has been implemented in Series 40 5th Edition and 6th edition?

    Please help!!

  8. #8
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: How to show fulltext in a label of textfield in a Form

    Hello kumar.modi,

    you are right, this works in older SDKs and related products but not in the newer ones. The reason: for the newer ones the size of label has been fixed to be one line only. As this is set fixed, unfortunately there is no way to circumvent it as for an Item label is concerned; however the StringItem suggestion by Enthusiastic will troubleshoot this good.

    Regards,
    r2j7
    Attached Images Attached Images
    Last edited by r2j7; 2010-03-05 at 23:27.
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

Similar Threads

  1. Append TextField to Form causes other items color to change
    By sazilla in forum General Development Questions
    Replies: 2
    Last Post: 2009-10-15, 00:44
  2. Form localized button label in edit mode...
    By FrankTheFox in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-09-21, 20:13
  3. Create and show label in run time
    By symbi4n_programmer in forum Symbian
    Replies: 1
    Last Post: 2009-03-10, 16:05
  4. Replies: 2
    Last Post: 2005-12-22, 07:36
  5. How to show an Alert when a TextField value changes? (7210)
    By ionutianasi in forum Mobile Java General
    Replies: 0
    Last Post: 2003-08-29, 08:22

Posting Permissions

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