Winforms limit size limit

I am using the Paint Panel event to display a very long chart. I ran into a problem with the size of the .net controls (height and width), which are silently limited to a signed 16-bit integer (32,767). I assume this is the main limitation of win32.

Is there a way around this limitation and have larger controls?

+1
source share
2 answers

You can try to have your own scrollbars (rather than a scrollable bar), and then draw only that part of the visible chart.

+2
source

Consider rendering a thumbnail as the length of your shape (one screen), with a view rectangle indicating where you are. Then just the full-sized part that they scroll.

Assuming you already have a code that displays the entire DNA sequence, you may not even have to change much; The Bitmap class has a Clone () method, which allows you to clone only a rectangular Bitmap section, as well as the GetThumbnailImage () method, which you can use to create your sketch.

0
source

Source: https://habr.com/ru/post/901109/


All Articles