Closed Bug 122102 Opened 24 years ago Closed 17 years ago

Mac OS X Resizable sheets - how to get grow box?

Categories

(Core :: XUL, defect)

PowerPC
macOS
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mozilla, Assigned: the_great_spam_bin)

References

Details

Attachments

(1 obsolete file)

Simon was asking about making Mac OS X sheets resizable. After my initial disbelief (I had never seen such a "beast", as well as nothing in the APIs or documentation to indicate that they were possible), I have a few code tweaks to get it to work. Only one problem seems to be outstanding -- getting the growbox to appear. There are only two documented sheet-related window procIDs: kWindowSheetProc = 1088 /* available in Mac OS X and CarbonLib 1.3 */ kWindowSheetAlertProc = 1120 /* available in Mac OS X after 1.0, and CarbonLib 1.3 */ Steve (Dagley), can you check with Apple to see if there is an undocumented procID which will produce a sheet with a growbox? Or, barring that, what's the special sauce required?
Status: NEW → ASSIGNED
Attached patch resizable sheets (obsolete) — Splinter Review
Patch.
If you look at an X app like Text Edit you'll see that the Save As... sheet is resizable if you toggle between the simple and expanded versions of the Nav Services Save As... dialog. As you say there doesn't seem to be any APIs or procIDs for this so it may just be Nav Services magic (and I notice we don't do those dialogs as sheets). On the other hand there is an interesting comment in MacWindows.h talking about handling the kEventWindowDrawContent message: "If you install the standard Carbon window event handler on your sheet window (using kWindowStandardHandlerAttribute or InstallStandardEventHandler), the standard handler automatically handles this event and calls DrawControls."
Since ajfeldman has incorporated my patch into his in bug # 106695, let's use this bug for tracking how to get the grow box for a resizable sheet. Updating summary. Steve, I'm going to nudge this bug in your direction so that you can ask Apple.
Assignee: rjc → sdagley
Status: ASSIGNED → NEW
Summary: Mac OS X Resizable sheets → Mac OS X Resizable sheets - how to get grow box?
Response from Apple: "Just set the Resizable window attribute on the sheet window." Now that we know how, reassigning to ajfeldman so it can be incorporated in bug # 106695,
Assignee: sdagley → ajfeldman
rjc already figured that out. The problem is, as he realized, is that although the sheet becomes resizable, it doesn't get a resize grippy. I have no idea why.
Do we attach the standard handler to the window?
Fwiw, the Halime newsgroup client has resizable subscription dialog sheet.
Comment on attachment 66685 [details] [diff] [review] resizable sheets Obsoleting this patch as it was checked in for bug # 130218
Attachment #66685 - Attachment is obsolete: true
Depends on: 130218
Severity: trivial → minor
Apparently this has already happened, because bug 163267 is complaining about it.
Depends on: 163267
Blocks: 193527
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
well, bug 163267 hasn't been touched for 5 years and I have never seen a resizer in a sheet. We probably don't want resizable sheets, so this might be invalid
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
I think it was fixed by bug 130218 and later ported to Cocoa, but I'm not sure. And I can see a resizer in the Bookmarks -> Bookmark All Tabs... sheet :-)
Oh, ok. Sorry. Resoling as wfm again, then.
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: