I have a ReAction window with a main layout that contains a horizontal child layout consisting of a bitmap image object sitting next to a label image object. I need to swap the child layout for another one when the window is NOT open. What I'm basically doing is: - Attach the first child layout to the main window layout. - Open the window. - Close the window, remove the child layout, and attach the second child layout to the main layout. - Open the window again. The second child layout is smaller than the first one (because the bitmap and/or the label is smaller). The thing is: when I open the window, it remains the same size, whereas I'd like the window to adapt its size to the smaller layout size. What do I need to do? I don't want to call WM_RETHINK on the open window because this causes a visible resize, which looks quirky. I want to resize the layout before the window gets opened.
Mon, 2015-11-02 12:59#1
Layout resize (solved)