<div>Hi,</div><div> </div><div>I have a window that contains a composite widget that in turn contains some basic widgets and a table view. Depending on different situations, the table view can have a little or a lot data. </div>
<div> </div><div>What I want is for the window to show a reasonable default size when it comes up. In other words, when there is a little data, don't show a huge window; when there is a lot of data, don't show a tiny window.</div>
<div> </div><div>To make things more complicated, there has to be some minimum and maximum size. For example, the window size cannot be bigger than the screen size. But using the screen size is not exactly right, because the desktop system occupies part of the screen. For example, on Windows, the bottom area of the main screen is reserved for the system task bar, and should not be covered by my window, whereas on the second screen usuallt one can occupy the whole screen size.</div>
<div> </div><div>I am wondering wat can be done to achieve this.</div><div> </div><div>Thanks,</div><div>Tom</div>