×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    32

    Is there a way to add a checkbox & label together in list.

    Hi all,

    I have my own checkbox class to display a checkbox.

    Now i need to display 10 number of checkboxes and its corresponding labels in a screen. But the problem is i could display only 6 of it. Rest of it not appearing as the screen size is less.

    So i need any inputs in acheieving this.

    - Can i add checkbox & labels in a list which would grow and display with the scroll bars.
    - is it possible.

    Like below in the list box ?
    -
    | | Item1
    -

    -
    | | Item2
    -

    -
    | | Item3
    -

    -
    | | Item4
    -


    Thanks in advance.

    - mani

  2. #2
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Is there a way to add a checkbox & label together in list.

    Hi,
    Have a look into this article on how to add scrollbar in a listbox
    http://wiki.forum.nokia.com/index.ph...Bar_in_ListBox
    Maximus
    S60 Developer
    Impossible is nothing

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: Is there a way to add a checkbox & label together in list.

    Hi,
    What kind of list box are you using if it is an S60 listbox it already has Scrollbar which you need not worry and if you want to change the cell item size you can very well do by calling api on the itemdrawer, if you want scrollbar you could enable or disable it. Choice is yours.
    Regards,
    Sriky

  4. #4
    Registered User
    Join Date
    Oct 2008
    Posts
    32

    Re: Is there a way to add a checkbox & label together in list.

    Hi Sriky,

    So displaying scroll bars can be done.My concern is how do we bring a checkbox & a label together adjacent to it as a single item in listbox.

    When the listbox is displayed it will have a checkbox across the label. Like that 10 items should be displayed.


    - Mani

  5. #5
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: Is there a way to add a checkbox & label together in list.

    Yup, You could set the Cell Item size on the itemDrawer

    iMyListbox->ItemDrawer(), set the cell height or size or width.
    Regards,
    Sriky

  6. #6
    Registered User
    Join Date
    Sep 2008
    Posts
    34

    Re: Is there a way to add a checkbox & label together in list.

    S60 does not support checkbox, but UIQ3 does. There is a small library called SAKON, it makes checkbox available on S60.

    #include "sakon.rh"

    RESOURCE SAK_BUILDING_BLOCK r_my_block
    {
    type = ESakBuildingBlockTwoLine;
    label = "Please Select:";
    control_type = ESakCtChoiceList;
    control = r_my_choicelist;
    }

    RESOURCE SAK_CHECKBOX r_my_checkbox
    {
    label = "Choose Or Not";
    }

    http://www.afasoft.cn/guide/buildingblock.htm
    for further information, contact me at shaofa@vip.163.com
    Last edited by john.shaofa; 2008-11-03 at 08:28.

  7. #7
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Lightbulb Re: Is there a way to add a checkbox & label together in list.

    Quote Originally Posted by john.shaofa View Post
    S60 does not support checkbox, but UIQ3 does. There is a small library called SAKON, it makes checkbox available on S60.

    #include "sakon.rh"

    RESOURCE SAK_BUILDING_BLOCK r_my_block
    {
    type = ESakBuildingBlockTwoLine;
    label = "Please Select:";
    control_type = ESakCtChoiceList;
    control = r_my_choicelist;
    }

    RESOURCE SAK_CHECKBOX r_my_checkbox
    {
    label = "Choose Or Not";
    }

    http://dragonwaken.blog.sohu.com/102953285.html
    http://dragonwaken.blog.sohu.com/102875460.html
    for further information, contact me at shaofa@vip.163.com
    There is checkable listbox available in s60 to try CAknFilteredTextListBoxMode.
    Regards,
    Sriky

  8. #8
    Registered User
    Join Date
    Sep 2008
    Posts
    34

    Re: Is there a way to add a checkbox & label together in list.

    Quote Originally Posted by sriky27 View Post
    There is checkable listbox available in s60 to try CAknFilteredTextListBoxMode.
    What about having a checkbox ,a edit, and other type of control at one page? Can listbox manage this?
    see this link, it's very simple.
    http://dragonwaken.blog.sohu.com/103021324.html

  9. #9
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: Is there a way to add a checkbox & label together in list.

    What the links says is very simple, the main problem is having it in form of a list where the number of items are unknown and also scrolling is needed..


    s60 has a ready made option for this:
    search Multi-Selection List
    and also CEikListBox in SDK

    you should get some help....
    I would try to give you the exact class names and options... if you are unable to get it yourself :)
    Amit Kankani
    Nokia Developer Champion

Similar Threads

  1. How to add a list on a Canvas??
    By Rodrigo82 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2006-11-23, 12:15
  2. How to add scroll bar to setting list
    By wolfkeeper in forum Symbian C++
    Replies: 0
    Last Post: 2005-12-25, 17:53
  3. How to add items dynamically to the double pop menu style list box
    By vinayakak in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-12-07, 08:16
  4. Replies: 3
    Last Post: 2005-11-29, 08:11
  5. To add icons in my Graphic List Box
    By santoshudipi in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-08-07, 05:45

Posting Permissions

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