Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make window



Thanks Jerry. It's just what I wanted. 

On Mar 27, 2007, at 2:44 AM, Jerry wrote:


On 27 Mar 2007, at 21:26, Yakov Zaytsev wrote:

Hi,

I'm newbie in Carbon development. I want to implement following behavior. 
This is original window..


And I want to make it "collapse" after user double clicks on it's title bar. As follows..



PS
I think it isn't right to call such thing "collapse", but anyway as I mentioned I'm bit lost in Mac terminology. I will be really thankful if you suggest better word.. 

You can do this with something like this:

Rect r, sr;
GetWindowBounds( window, kWindowStructureRgn, &sr );
GetWindowBounds( window, kWindowTitleBarRgn, &r );
TransitionWindow( window, kWindowSlideTransitionEffect, kWindowResizeTransitionAction, &r );                        

Jerry

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


---
With best regards,
Yakov Zaytsev




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >How to make window (From: Yakov Zaytsev <email@hidden>)
 >Re: How to make window (From: Jerry <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.