★ wanayoo — archive 1999 http://developer.apple.com/samplecode/Sample_Code/Human_Interface_Toolbox/GridWindowGrow.htmNouvelle recherche | Portail wanayoo
Technical: Sample Code: Human Interface Toolbox: GridWindowGrow
Human Interface Toolbox
ADC Resources
Sample Code

GridWindowGrow

download (21.9 KB)

Version:

1.0d1

Date:

Friday, August 6, 1999

Description:


This snippet shows how to grow a window constrained to a grid (i.e. only allow a window to grow or shrink by 30 pixels).

You might think that using something like DragHook (see the Window Manager documentation) would be the best way to approach this, but the easiest way to do this is just to write a small MyGrowWIndow function and use that.

Or, even better, just grab this one demonstrated here.

Requirements:




Samples are designed to work with CodeWarrior 2 or later and Universal Interfaces 3.2 unless otherwise noted. Archives can be uncompressed with StuffIt Expander 5.0 or later.
Gray line
 
Site Map | Search Tips | Options | Keywords

Contact Us | Privacy Notice
Copyright © 2000 Apple Computer, Inc. All rights reserved.
1-800-MY-APPLE