Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

SplitContainer "Continuous Layout" or "Show Contents During Reizing" Option?

$
0
0
Hello,

I am working with the SplitContainer control in VS .NET 2005 July CTP.

When sizing a content area on the screen, such as when resizing a form or when moving a splitter bar, there are usually two ways to go about it. One is to draw the splitter bar / form bounds only, then resize and repaint the content area(s) and child controls once, when resizing is complete.

The second way is referred to in Java as "Continuous Layout" and, I believe in Windows as "Show Window Contents During Resizing" (an OS-controlled option in Windows).

I am trying to get this continuous resizing behavior with the SplitContainer control, such that the two SplitContainer panels are dynamically resized, continuously, as the splitter bar is moved.

I've tried hooking into a few events on the SplitContainer, and calling Invalidate() / Refrehsh, but so far haven't had much luck. I believe this behavior is possible, since resizing the SplitContainer itself causes the actual SplitContainer Panels to resize because the proportions of the internal panels are (appear to be) maintained during SplitContainer resizing.

I like the user experience that this provides (AERO, right! :) ) so would be grateful for any pointers or comments.


Thank you,

--Mike

Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>