×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    127

    to create space between two string item?

    Hi,
    I want to create a space between two string item.
    How can i do so please help me with it.
    Thanks

  2. #2
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    127

    Re: to create space between two string item?

    How can we do so please help...

  3. #3
    Registered User
    Join Date
    Dec 2008
    Location
    Cochin, Kerala, India
    Posts
    84

    Re: to create space between two string item?

    For using a StringItem:---

    Form frm=new Form("");
    StringItem si1=new StringItem("Label", "Text");
    String si2=new StringItem("Label", "Text");
    String si3=new StringItem("Label", "Text");

    frm.append(si1);
    frm.append(" "); // for getting space
    frm.append(si2);
    frm.append("\n"); // for getting a new line
    frm.append(si3);

    Hope u got the result now.

    Regards
    Vineeth K

  4. #4
    Nokia Developer Champion
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: to create space between two string item?

    Form form = new Form("");
    StringItem sItemOne = new StringItem("String Item one","One");
    StringItem sItemTwo = new StringItem("String Item Two","Two");

    Spacer spacer = new Spacer(width , height) ;

    form.append(sItemOne);
    form.append(spacer);
    form.append(sItemTwo);

    checkout this..
    thanks,
    jitu_goldie..

    KEEP TRYING..

  5. #5
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    127

    Re: to create space between two string item?

    Quote Originally Posted by jitu_goldie View Post
    Form form = new Form("");
    StringItem sItemOne = new StringItem("String Item one","One");
    StringItem sItemTwo = new StringItem("String Item Two","Two");

    Spacer spacer = new Spacer(width , height) ;

    form.append(sItemOne);
    form.append(spacer);
    form.append(sItemTwo);

    checkout this..
    Thanks i got my answer.

Similar Threads

  1. How To Create SubMenu on Menu Item
    By cyborneo in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-07-20, 10:57
  2. Finding a Contact using a string of words
    By jp4symbian in forum Symbian C++
    Replies: 4
    Last Post: 2007-02-10, 09:40
  3. How to use Gauge/Process Bar when using HttpConnection?
    By Tanya in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-12-28, 07:59
  4. Custom item not displayed correctly
    By kakoskin in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-10-11, 21:50
  5. D211 new linux driver 1.04 not working !!
    By franz_meyer in forum Multimodecards
    Replies: 1
    Last Post: 2002-12-12, 08:31

Posting Permissions

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