Tab-Control with Scrollbar

Discussion in 'Questions (Windows Mobile)' started by Sascha K., Feb 13, 2008.

  1. Sascha K.

    Sascha K. Member Licensed User

    Hello there,

    how can i build a tab-control with a scrollbar on right side like
    the "contact"->"edit" funktion in PPC?
     
  2. klaus

    klaus Expert Licensed User

    Do you really want a Tab control or a Table control ?
    With the Table control when the number of lines becomes higher than the height of the control the ScrollBar is automatic.
    You can add the table onto a page of the Tab control if you need it.

    Best regards
    Klaus
    Switzerland
     
  3. willisgt

    willisgt Active Member Licensed User

    Klaus is right. It's possible to build something like the contacts list, but it requires you to reset the 'top' attribute of all the controls on the form every time the scrollbar moves. While this works fine with a short list, it begins to slow down - badly - with a longer list.

    I have an example application I'll be happy to post if you want it, but really, a table would be the way to go.

    Gary
     
  4. Cableguy

    Cableguy Expert Licensed User

    Yes, But it is NOT editable in Place...

    Not quite, if we place all the needed controls in a panel we can then only move the panel, and all controls are relocated with it...
    I have a sample here, but seem to have found a bug(?) in the Tab Control, in the ControlsEX Library...
    The BringToFront method does NOTHING!!!!!

    PS: you should copy the controlsEX lib into the same directory as my example...
     

    Attached Files:

  5. superbabicka

    superbabicka Member Licensed User

    Hi Cableguy, I meet this work :)

    Here is answer of your question :)

    I think this is what you want...
     

    Attached Files:

Loading...