simed
26-10-2011 21:55:44
I thought it would be cool to add simple maximize/restore functionality... double-clicking a Window's caption would toggle it from being maximized and normal state.
I ran into a couple of issues,mostly centered around the difference between resizable and non-resizable Windows:
I ran into a couple of issues,mostly centered around the difference between resizable and non-resizable Windows:
- I only want resizable windows to support maximizing... given an existing Window*, I can't see how to tell if it's resizable.[/*:m]
- When a window is maximized, I want to stop it being manually resizable by dragging corners[/*:m]
- My maximize code looks a bit like: setRealCoord(0,0,1,1) followed by setAlign(Align::Stretch). But this invariably means window caption is hidden underneath my menu and now I can't move/close/restore[/*:m][/list:o]Advice on any of these issues would be great... the core idea works nicely enough.