Scrollbar

6 posts, 0 answers
  1. Daniel
    Daniel avatar
    7 posts
    Member since:
    Jul 2013

    Posted 28 Apr 2014 Link to this post

    Hi,

    Can I resize the scrollbar in RadPanorama so that it shows bigger ?

    REgards,
    Daniel
  2. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 29 Apr 2014 Link to this post

    Hello Daniel,

    Thank you for writing.

    You can set the height of the scrollbar by using the ScrollBarThickness property:
    radPanorama1.ScrollBarThickness = 100;

    More information is available in the following article: Scrolling.

    Let me know if you have additional questions.
     
    Regards,
    Dimitar
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Daniel
    Daniel avatar
    7 posts
    Member since:
    Jul 2013

    Posted 29 Apr 2014 Link to this post

    Hi,

    I have tried setting the ScrollBarThickness, but that's only moving the scrollbar to a different location instead of making the scrollbar more thick like the property name suggests.
    Am I doing something wrong? I'm using the Demo Hub from the Win Form demo.

    Regards,
    Daniel
  5. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 30 Apr 2014 Link to this post

    Hello Daniel,

    Thank you for writing back.

    This demo uses a custom theme where the scroll bar MaxSize property is set and this is why changing its thickness does not work as expected. For example, you can remove this with the following line of code (after the theme is loaded):
    this.radPanorama1.PanoramaElement.ScrollBar.MaxSize = new Size(0, 0);

    I hope this helps. Should you have any other questions do not hesitate to ask.
     
    Regards,
    Dimitar
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  6. Daniel
    Daniel avatar
    7 posts
    Member since:
    Jul 2013

    Posted 30 Apr 2014 Link to this post

    Hi,

    What about if I use a pre-defined theme, such as "TelerikMetroTouch" ?
    Can I use the above code as well ?

    Regards,
    Daniel
  7. George
    Admin
    George avatar
    500 posts

    Posted 01 May 2014 Link to this post

    Hi Daniel,

    Thank you for writing back.

    This code would not affect the scroll bar because the TelerikMetroTouch theme does not set max size for the same element. If you use the ScrollBarThickness property in this case the scroll height will increase, but the actual scroll bar will appear smaller (since it is designed this way in the theme). In this case it would be better to change the scroll bar styles in the theme using Visual Style Builder. You can achieve it by exporting the built-in themes as per the article Loading Predefined Themes in our documentation. After you have exported the themes open the TelerikMetroTouch theme and navigate to RadScrollbar -> RadScrollBarElement _> ScrollBarThumb and set the MaxSize property to 0,0. Refer to the attached image for more detailed information. 

    Now you can set the ScrollBarThickness property.

    In case you need additional help with the theming mechanism, you can read the following articles:
    Let me know if you have additional questions.
     
    Regards,
    George
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top
UI for WinForms is Visual Studio 2017 Ready