wxSplitterWindow width behavior on resize. 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
Alberto García
Earned a small fee
Earned a small fee
Posts: 15
Joined: Sun Apr 24, 2016 5:24 pm

wxSplitterWindow width behavior on resize.

Post by Alberto García »

Hi, I have created an application which uses a wxSplitterWindow, all runs well, but I have a problem with the behavior of it when I resize my application.

I explain it, when I do:

Code: Select all

mySplitter->SplitVertically( leftPanel, rightPanel );
wxWidget creates two panel divided by a border, where dragging this border I can change the size of the panels, the issue is when I resize the window of the application, in this case, the panel "leftPanel" save the same width as before resizing, and the "rightPanel" changes his width according the rest of the width in the resized window of the application.

I want to produce the opposite behavior: that the rightPanel keeps the same width as before resizing ,and the panel "leftPanel" changes his width according the size of the window of the application.

Best regards.
User avatar
doublemax
Moderator
Moderator
Posts: 19159
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxSplitterWindow width behavior on resize.

Post by doublemax »

Use the source, Luke!
Alberto García
Earned a small fee
Earned a small fee
Posts: 15
Joined: Sun Apr 24, 2016 5:24 pm

Re: wxSplitterWindow width behavior on resize.

Post by Alberto García »

Thank you very much doublemax.
Post Reply