Version: 1.0

Posted: 2003-01-30

Build Requirements: N/A

Runtime Requirements: Carbon Mac OS X

View Source Code:

Download Sample (“CustomWindowWidget.zip”, 23.6K)
Download Sample (“CustomWindowWidget.dmg”, 82.1K)



Description

This sample code demonstrates two ways of adding a custom window widget to the window frame of a standard document window: - on 10.1 and earlier, it overrides the kEventWindowDrawFrame, kEventWindowDrawPart, and kEventWindowHitTest events. - on 10.2 and later, it uses a custom HIView, which it inserts into the root view of the window. Requirements: Mac OS X Keywords: window, HIView, window frame, widget

Document Revision History

Date Notes
2003-01-30Demonstrates two ways of adding a custom window widget to the window frame of a standard document window.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.