Copyright ã1996 by NeXT Software, Inc.  All Rights Reserved.

;SettingButtonAttributes.rtfd;;¬  Next Section	;ExaminingAnObjectsAttributes.rtfd;;¬  Previous Section

Customizingwindowsandpanels;¬Customizing windows and panels 

¬	Set the window title.

¬	Determine how the Window Server buffers window contents.

¬	Choose the window's controls.

¬	Set the window's options.

A single Attributes display serves for both windows and panels. 

¬

Window Backing

The backing determines how to redraw part of a window when that part is re-exposed after being covered by another window.

¬	Nonretained: The application is responsible for all drawing on the screen because there is no buffer. If the application does nothing, the re-exposed part is replaced by the background color. Nonretained windows are appropriate for transitory images that you don't need to save.

¬	Retained: The Window Server copies the covered part's pixels to a buffer. When the obscured part of the window is later revealed, the Window Server redraws only that part, not the rest of the window. A retained window is the appropriate choice for most situations.

¬	Buffered: The Window Server first draws in the buffer and then copies the buffer to the screen. When an obscured part is revealed, the Window Server refreshes the entire window using the buffer. A buffered window is appropriate when you don't want users watching complicated images being rendered on-screen. It is also the best choice for animation or for redrawing lines of rapidly typed text.

Window Controls 

¬

Window Options

Option	Description
¬

Release when closed 	The window object is sent a release message when it is closed.
¬

Hide on deactivate	The window should disappear when the application is deactivated.
¬

VIsible at launch time	The window should appear when the nib file is loaded.
¬

Deferred 	A window device for this object is deferred until it's placed on-screen.
¬

One shot 	The window device is released when it is removed from the screen.
¬

Dynamic depth limit	The window's depth limit can change to match the depth of the screen.
¬

Wants to be color	The window is displayed on a color screen (2-monitor systems only).
¬

Related Concept:  ;SettingAttributesConcepts.rtfd; linkMarkername What'stheDifferenceBetweenaWindowandaPanel?;,  What's the Difference Between a Window and a Panel?