[comp.sys.apple2] Window Definition Procedures

avery@netcom.COM (Avery Colter) (04/11/91)

Now, page 25-25 of the GS Toolbox Reference starts out reading, 
"You may want to define your own type of window, such as a round or 
hexagonal window; Quickdraw and the Window Manager allow you to 
define your own window shape."

I have seen a few programs where the windows were slightly non-standard, 
but I've never seen a round or hexagonal window to my knowledge. 
I'd like to know if anyone has ever done this, if there are any 
source code examples of window definition procedures, as I might like to 
make some of these in some programs.

-- 
  ^     ^ 	Avery Ray Colter    
 /^\___/^\    	avery@netcom.com		{apple|claris}!netcom!avery  
(  o _ o  )   	elfcat@btr.btr.com		{decwrl|mips|sgi}!btr!elfcat
 \  /v\  /      71067.606@compuserve.com	(415) 839-4567
  \_*-*_/
    `-'			Afternoon has gently passed me by.	    - The
  ELFCAT! 		And Evening spreads itself against the sky.   Police

dlyons@Apple.COM (David A. Lyons) (04/12/91)

In article <1991Apr11.063406.9508@netcom.COM> avery@netcom.COM (Avery Colter) writes:
>Now, page 25-25 of the GS Toolbox Reference starts out reading, 
>"You may want to define your own type of window, such as a round or 
>hexagonal window; Quickdraw and the Window Manager allow you to 
>define your own window shape."
>
>I have seen a few programs where the windows were slightly non-standard, 
>but I've never seen a round or hexagonal window to my knowledge. 
>I'd like to know if anyone has ever done this, if there are any 
>source code examples of window definition procedures, as I might like to 
>make some of these in some programs.

Writing a custom window defproc is difficult; but there is a Developer
Technical Support sample.  It's sample #5.

The primary reference is Apple IIgs Technical Note #42, Custom Windows.
The note dates back to the 4.0 days, and I do not know whether there
are any 5.0 surprises waiting for you.
-- 
David A. Lyons, Apple Computer, Inc.      |   DAL Systems
Apple II System Software Engineer         |   P.O. Box 875
America Online: Dave Lyons                |   Cupertino, CA 95015-0875
GEnie: D.LYONS2 or DAVE.LYONS         CompuServe: 72177,3233
Internet/BITNET:  dlyons@apple.com    UUCP:  ...!ames!apple!dlyons
   
My opinions are my own, not Apple's.