Cyotek.Windows.Forms.ImageBox icon indicating copy to clipboard operation
Cyotek.Windows.Forms.ImageBox copied to clipboard

Problem when trying to hide Scrollbar

Open d2phap opened this issue 11 years ago • 5 comments

Hello,

Thank for your project. I got an issue. I tried to hide scrollbar (both vertical and horizontal bar) of ImageBox:

imageBox.AutoScroll = false;
imageBox.VerticalScroll.Visible = false;
imageBox.HorizontalScroll.Visible = false;

The problem occurred when I use zoom function. Zoomed image was run to above and disappear!

loi

d2phap avatar Apr 03 '14 14:04 d2phap

Hello,

Interesting! Thanks for the bug report. I took a quick look and can reproduce. Why would you be zooming the control and hiding the scrollbars plus preventing scrolling?

I'll take a look at this shortly and let you know when/if I have a solution.

Regards; Richard Moss

cyotek avatar Apr 03 '14 18:04 cyotek

Hi Richard Moss,

I am looking forward to your solution. I am developing a simple viewer, and I see scrollbars occupy too much viewer space. Anyway, this is the best viewer control. Thank you for your project!

Best And Regards, Phap

d2phap avatar Apr 04 '14 02:04 d2phap

Wheesh, this bug has been open a long time. There's a new branch which contains the source for a newer version of the ImageBox - it's not really compatible with the old version, hence the branch. I've rewrote scrolling from the ground up, getting rid of the nested inheritance and relying on a custom scroll implementation. This means you can now completely hide the scrollbars (via the VerticalScrollBarStyle and HorizontalScrollBarStyle properties) and everything Just Works.

Assuming you still use the ImageBox (or anyone else reading this issue I suppose!), it would be helpful to obtain some feedback before I start thinking about committing this to master. (I will move the existing 1.x code into a new branch so people can still use the older version if required).

cyotek avatar May 28 '15 18:05 cyotek

Thanks! I have been using it for a long time. It's working well!

d2phap avatar Oct 08 '16 04:10 d2phap

I'm pretty sure the last time I actually had time to work on this I spotted some issues so I still need to finalise the code... I'm still pretty busy with some other work right now, but I will make a concentrated effort to get this finished off once and for all as soon as I can.

cyotek avatar Oct 09 '16 13:10 cyotek