Problem: 1347449
Title: (Windows) Dynamically Resizing (on, off)
Received: May 6 1996 9:44AM
The solution:
in TWindow::HandleMouseDown switch (aPartCode) { . ( other cases omitted for simplicity ) . . case inGrow: // This is what I would like changed: if the window is marked as being resizable, // than resize it, otherwise treat it as a content click. if ( fIsResizable ) { this->ResizeByUser(theMouse); wasHandled = TRUE; } else // same as inContent above wasHandled = TView::HandleMouseDown(theMouse, event, hysteresis, mouseDownType); break; . . . }It would be even nicer and more complete to have methods to get and set the resizability of a window, where the set method would add or remove the TResizeAdorner if necessary. Why do I want my windows to resize sometimes and not others? I am doing it in floating palettes, where the palette can change "content panels", and the windows' resizability is dependent on the which panel is active.
Implemeted enhancement as requested.
Added a method 'SetIsResizable'.