Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Floating window sizing
posted

I'm trying to emulate Visual Studio behavior in terms of floating pane sizing. The dock manager allows the windows to return to their default floating size when floated via the programmatic command or menu, however if the user drags a window (either from the title bar or tab if it is in a group) then it does not return to its previous size, and instead stays the width it was when docked in that area. Visual Studio automatically sizes it to its previous state.

 Is there a place I can work around this? I've tried canceling the beforeDockChange and floating it myself, but I get asserts. I can also change the size once they have stopped the drag operation (in AfterDockChange) but this looks odd to the user since I'm using DragWindowStyle = LayeredWindowWithIndicators, the window stays same size while dragging and then changes once the mouse is released.

 Thanks,

Patrick