You would have thought adding scrollbars to the new stacking modes was a simple couple of hours job. Well it turned into a four day marathon but we got there in the end.

Scrollbars are needed when you have too many pages stacked to fit into the available space in the navigator. For example, you can see in the picture below that there are several stack items that are off the end of the control.

The vertical scrollbar is shown so you can navigate to and select the extra items off the end of the client area. It would also use a horizontal scrollbar if the selected page is wider than the available space.

Looks simple enough to implement but required much refactoring of code to handle the extra complications it generated. Such as correctly handling internationalized by swapping the vertical scrollbar side when working in right-to-left-layout mode. Not to mention getting the sizing and positioning correct with respect to minimum/maximum/preferred settings for the selected krypton page. Plus getting child controls on the selected page to honor anchoring as expected.

Still, we got there in the end and now I am going to lay down with a cold towel around my head for a while.

Leave a Reply