×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    30

    Limited number of Tabs

    Hi, I would like to know if I can be able to have more than four tabs on my ui because this seems like a limitation.


    these values I've taken from avkon.hrh

    EAknTabWidthWithTwoTabs = 36,
    EAknTabWidthWithTwoLongTabs = 74,
    EAknTabWidthWithThreeTabs = 22,
    EAknTabWidthWithThreeLongTabs = 67,
    EAknTabWidthWithFourTabs = 18,
    EAknTabWidthWithOneTab = 107

    I'd like my ui to display seven tabs all.

    could I please have an example code on how I can do this?

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,091

    Re: Limited number of Tabs

    I suppose that is limited to four tabs. I think that makes sense as well, increasing the number of tabs would make the tabs harder to differentiate(text/image over them won't be clear).

    Anyways you can make custom tabs of your own(which is nothing but combination of images drawn over a strip) : http://www.developer.nokia.com/Commu...ki/Custom_tabs

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,752

    Re: Limited number of Tabs

    On button-based devices, practically in the S60 era, there was no limitation since the user was navigating with left/right between the tabs. Then there was at least one style available which had a single visible tab only and the others were collapsed on the sides. However with touch-screen, the user selects tabs with simply tapping on them, so they have to be visible all the time. Clicking on tiny arrows on the sides is not too usable, though it may be possible to test on S60 5th edition if I remember correctly, and does not provide a really nice user experience.

  4. #4
    Registered User
    Join Date
    Jul 2012
    Posts
    30

    Re: Limited number of Tabs

    Hi Vineet,

    I had a look at the link you sent it looks really good, but I'm not sure how to implement this, is there perhaps an example that implements it?

  5. #5
    Registered User
    Join Date
    Jul 2012
    Posts
    30

    Re: Limited number of Tabs

    Another thing on the customtabs' link: the .pach file that is present; how can one apply this pach file?

    please advice?

  6. #6
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,091

    Re: Limited number of Tabs

    Quote Originally Posted by KnowledgeSeeker View Post
    Hi Vineet,

    I had a look at the link you sent it looks really good, but I'm not sure how to implement this, is there perhaps an example that implements it?
    If you have noticed there an example code already attached to that custom tab link(on the extreme right of the page, under 'article metadata' namely CustomTabControl.zip ).

    Try implementing this code & if any issues occur while doing so, you can of course re-post here.

  7. #7
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,091

    Re: Limited number of Tabs

    Quote Originally Posted by KnowledgeSeeker View Post
    Another thing on the customtabs' link: the .pach file that is present; how can one apply this pach file?

    please advice?
    I do not see any such file, can you please direct me where it is mentioned.

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,752

    Re: Limited number of Tabs

    Quote Originally Posted by vineet.jain View Post
    I do not see any such file, can you please direct me where it is mentioned.
    Yes, I also tried to find it yesterday, just there were no reference to anything similar. Neither in the article, nor in the .zip file.

  9. #9
    Registered User
    Join Date
    Jul 2012
    Posts
    30

    Re: Limited number of Tabs

    Hi Vineet,

    I've tried implementing this CustomTabControl example with no luck. I also cant find an implemented example of this. Is there perhaps any working compilable example of this or is it possible for one of the champions to create one and add it to the CustomTabControl link?

  10. #10
    Registered User
    Join Date
    Jul 2012
    Posts
    30

    Re: Limited number of Tabs

    Quote Originally Posted by wizard_hu_ View Post
    Yes, I also tried to find it yesterday, just there were no reference to anything similar. Neither in the article, nor in the .zip file.
    Hi Wizard, my mistake. I had mixed up the CustomTabControl article with the zip file from the CustomControl article.

    Although I am still struggling to implement the CustomTabControl. Pls help...

  11. #11
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,091

    Re: Limited number of Tabs

    How far did you reached? were any of the images got visible on top of the bar?, you might want to discuss your implementation here.

  12. #12
    Registered User
    Join Date
    Jul 2012
    Posts
    30

    Re: Limited number of Tabs

    Quote Originally Posted by vineet.jain View Post
    How far did you reached? were any of the images got visible on top of the bar?, you might want to discuss your implementation here.
    I managed to add the header and the source file to 'myView' project which is already got tabs. (but I've tried replacing the tabs functionality with the custom one).

    at first compile I got an error related to the following line: " KN_UI_LOG((KN_UI_LOG_TYPE_DEBUG,"CCustomTabControl::OfferKeyEventL\n"));" I commented this out and the compiler seemed to be happy.

    I also added a few libraries that were needed: "LIBRARY aknskins.lib aknskinsrv.lib aknswallpaperutils.lib egul.lib"

    I also changed my HandleKeyEventL to match it to the article's one.



    when adding the "CreateAndShowTabsL()" class, I started getting errors and its been error after error since.

  13. #13
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,091

    Re: Limited number of Tabs

    Since the attachment isn't the whole project but only the file which includes tabs code, so you need to implement the missing part by yourself. For e.g.the method CreateAndShowTabsL() includes the reference of bitmap file path(KTabsFileName) & its enumerations(EMbmTabsGlobalnav_contacts etc), so of course you need to use your own icons(may be svg's, jpg etc) & provide the reference of those in your project then.

  14. #14
    Registered User
    Join Date
    Jul 2012
    Posts
    30

    Re: Limited number of Tabs

    Quote Originally Posted by vineet.jain View Post
    Since the attachment isn't the whole project but only the file which includes tabs code, so you need to implement the missing part by yourself. For e.g.the method CreateAndShowTabsL() includes the reference of bitmap file path(KTabsFileName) & its enumerations(EMbmTabsGlobalnav_contacts etc), so of course you need to use your own icons(may be svg's, jpg etc) & provide the reference of those in your project then.
    I understand that part of adding my own icons. I've actually commented that part of the code for now Just to display the Tab labels. but I didn't even get as far as that.

    another thing is that how to I link these Tabs to my View Containers....?

  15. #15
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,091

    Re: Limited number of Tabs

    As said before also, custom tab is just a combination of images drawn together from an array, so if you are not drawing(you can also notice the Draw() method of that wiki code, only images are drawn) those images then no 'tab' would be there. For the time being you can simple take any image & utilize in the code.

Similar Threads

  1. LWUIT NUMBER OF TABS
    By pavanragi in forum Mobile Java General
    Replies: 1
    Last Post: 2012-08-22, 08:56
  2. S40 Textfield.Number limited 10 digits
    By rcaboni in forum Mobile Java General
    Replies: 4
    Last Post: 2008-03-20, 13:27
  3. Limited number of "if-statements"
    By patrickfrei in forum Symbian
    Replies: 12
    Last Post: 2006-12-27, 04:03
  4. Navigation Tabs (or Tabs Pane) in J2ME/Series 60
    By shadisky in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-05-05, 19:48
  5. Navigation Tabs (or Tabs Pane) in J2ME/Series 60
    By shadisky in forum Mobile Java General
    Replies: 0
    Last Post: 2005-05-05, 19:43

Posting Permissions

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