On May 13, 2007, at 3:41 PM, Arnaud Nicolet wrote: > Le 13 mai 07 à 22:24 Soir, Terry Ford a écrit: > >> On May 13, 2007, at 12:58 PM, Craig A. Finseth wrote: >> >>> When I display a sheet window inside a document window, the red >>> "close" button on the window title bar isn't active, even though >>> it's >>> been enabled in the properties window. >> >> A modal (Dialog) window does *not* have a close button and a sheet >> window is nothing but a modal window that appears on top of the >> document window that is its parent. > > Well, a modal window does not have a zoom button. The parent can.
A modal type window has *no* buttons (widgets) of its own. It is not designed to be closed, minimised or expanded by the user in any other manner than the code or controls within it. All buttons in the parent are disabled. >> You could always put a close pushbutton on the sheet window. I don't >> think there are any declares to enable the parent window's close >> widget when a modal window is frontmost. > > I think the normal UI way is to add a "Close" push button at the > bottom-right part of the window. This may even close both the sheet > and the parent window. Actually, sheet or dialog windows are normally used to request a response from the user directly related to an action that requires a selection. One such case is a warning window for closing an application with an unsaved document. Another might be deleting an item that cannot be recovered. In any case, they are usually closed or hidden by events triggered by the user in response to the question. In any case, it should not be used as a document window. Craig said he had reasons for his request but did not make them known. > BTW: It seems strange to me to use a sheet with its parent to be both > closed in the same time. Quitting or closing without without saving is one I can think of. > I think there is probably a better way to > achieve that. The problem is that he didn't mention what he was trying to achieve. Terry _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
