Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
GridWindowGrow
Last Revision: | Version 1.0, 2003-01-30 First Version |
Build Requirements: | |
Runtime Requirements: | Carbon |
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: Keywords: hwindowide, grid, DragHook
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-30