I'm looking for a way that my users can drag a child window (dialog) around while preventing it from leaving (rendering outside) the parent window. Attached is a mockup showing what I mean.
- The child window needs to be sizeable. The way I have it now is the user can resize the window via grab handle.
- The child window has an input box that resizes with the child window.
- The child window is a typical tools dialog that has a title and close button.
- The end solution ideally prevents the child window from going outside the parent window border at all. My mockup suggests it could but I'd rather it didn't.
Before I start digging into repositioning the child window based on mouse (drag/resize) events, I was hoping there was a simple way to do this using GUI/Control Styles. Any help with this would be much appreciated.