views:

356

answers:

1

Hi - How can I set the native window position when maximized?

I've tried repositioning it upon the DISPLAY_STATE_CHANGE event which sort of works - but the window flashes at maximized size before repositioning, and more importantly the 'maximize' button of the window is still active.

What I'm trying to achieve is simply a fixed width window that is 'docked' to the right of the screen when maximized while still utilizing the restore/maximize native window button functionality.

I should note that I have set the maxSize and minSize and that is working fine.

Thanks in advance - b

A: 

Try with NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGING

eglasius