Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

AutoZoom affects scrollbars

Last post 09 Apr 2008, 12:28 PM by AndyB. 0 replies.
Sort Posts: Previous Next
  •  09 Apr 2008, 12:28 PM 13662

    AutoZoom affects scrollbars

    We have written quite an extensive application using AtalaSoft dotImage and the dotAnnotation add-on. However there is a particular problem which is causing some grief at the moment, which I hope you can help me with.

    Our system allows the user to resize the image in a number of different ways, using the AutoZoom property of the ImageControl. This seems to work fine in terms of resizing images, but it has a strange effect on the scrollbars. We have the scrollbars set to dynamic so that they appear and disappear as the image is resized on the screen.

    If you take an image with the same proportions as an A4 sheet of paper and perform a FitToWidth on it, the image is correctly resized to the width of the screen with the bottom half being just off the screen. However if you then set the AutoZoom property to None, the right-hand scrollbar on the image disappears, despite the image not being fully visible in the viewing area. If you then reset the AutoZoom property to FitToWidth again, the scrollbar reappears.

    Surely setting the AutoZoom mode to None shouldn't affect the scrollbars if they are set to dynamic? Any advice on this please?

    Thanks in advance.

View as RSS news feed in XML