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 get window status when change from disable to enable




On Jan 12, 2007, at 10:32 AM, John Stiles wrote:

Have you considered making your "child dialog" a sheet?
It seems like that is the behavior you are going for here. And then everything "just works."

The OP may actually be referring to a sheet, but not using the correct terminology. Either way, the same problem exists if the parent needs to know when the sheet has closed. Using a sheet won't really address that automatically. The right answer for this is almost something other than determining when the parent window has activated. Some kind of CarbonEvent or custom command is probably the best answer.


Larry

Laurence Harris wrote:

On Jan 12, 2007, at 2:29 AM, Le Ngoc Cao wrote:

Please help me.
Description:
In Carbon, I have 2 dialogs, parent dialog and child dialog. When child
dialog is displayed, parent dialog is disable. When child dialog is close,
parent dialog is enable.


How to know when parent dialog is changed from disable status to enable
status?

That's actually called activated and deactivated, and there are Carbon Events for that. But your parent dialog could be deactivated and reactivated for other reasons, so that's not a good way to tell when the child dialog has gone away.


And BTW, don't put brackets around the subject.

Larry

_______________________________________________
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/jstiles% 40blizzard.com


This email sent to email@hidden

_______________________________________________ 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 get window status when change from disable to enable] (From: Le Ngoc Cao <email@hidden>)
 >Re: [How to get window status when change from disable to enable] (From: Laurence Harris <email@hidden>)
 >Re: How to get window status when change from disable to enable (From: John Stiles <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.