why my scrolledwindow`s valid area so small? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
chenzhengxi
Earned a small fee
Earned a small fee
Posts: 22
Joined: Tue Jan 17, 2006 9:49 am

why my scrolledwindow`s valid area so small?

Post by chenzhengxi » Wed Feb 22, 2006 7:41 am

I have a wxSplitterWindow in the main frame.
the treectrl is ok in the left of SplitterWindow.
but the scrolledwindow is bad in the right of SplitterWindow.
the scrolledwindow look so big,but all area is invalid except the top left corner,the valid area is too small.
I defined many events and add many widgets,it testified that the valid area is on the top left corner,other is not.
why?
/////////////////////////////////////////////////////
<resource version="2.3.0.1">
<object class="wxFrame" name="topframe" subclass="TopFrame">
<style>wxDEFAULT_FRAME_STYLE</style>
<object class="wxBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<option>1</option>
<flag>wxEXPAND</flag>
<object class="wxSplitterWindow" name="splitterwindow">
<style>wxSP_3D|wxSP_BORDER</style>
<orientation>vertical</orientation>
<object class="wxPanel" name="window_1_pane_1">
<style>wxTAB_TRAVERSAL</style>
<object class="wxBoxSizer">
<orient>wxHORIZONTAL</orient>
<object class="sizeritem">
<option>1</option>
<flag>wxEXPAND</flag>
<object class="wxTreeCtrl" name="prjtreectrl">
<style>wxTR_HAS_BUTTONS|wxTR_DEFAULT_STYLE|wxSUNKEN_BORDER</style>
</object>
</object>
</object>
</object>
<object class="wxPanel" name="window_1_pane_2">
<style>wxTAB_TRAVERSAL</style>
<object class="wxBoxSizer">
<orient>wxHORIZONTAL</orient>
<object class="sizeritem">
<option>1</option>
<flag>wxEXPAND</flag>
<object class="wxScrolledWindow" name="prjcanvas">
<style>wxTAB_TRAVERSAL</style>
</object>
</object>
</object>
</object>
</object>
</object>
</object>
</object>
</resource>

chenzhengxi
Earned a small fee
Earned a small fee
Posts: 22
Joined: Tue Jan 17, 2006 9:49 am

Post by chenzhengxi » Wed Feb 22, 2006 10:18 am

oh my God
I found my treectrl`s valid area is also small

Post Reply