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 "flash" the default OK button in a dialog?



At 23:31 -0600 2/27/02, Phillip A. Kavan wrote:

so, is the general idea then that i will NOT be able to get the default
button to flash when i use my own ModalFilterUPP? i.e. is switching to
the Carbon Event Manager the ONLY way that i will be able to get this to
work? if that is the case, then i guess it is not going to become a very
critical issue for me on this release.

Here's something else you might try. This is a snippet from my Pascal program, so you'll no doubt have to translate it into some other language:

val := true;
theErr := SetControlData(DlgControl(theDialog, kOK), kControlEntireControl,
kControlPushButtonDefaultTag, SizeOf(val), @val);

I don't use a ModalFilterUPP, so I don't know if this would make any difference in your case, but it's something else to try. I condition this on if the Appearance Manager is available (this code runs on OSes back to 6.0.x).
--
Mike Casteel
email@hidden Seattle, WA
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: how to "flash" the default OK button in a dialog? (From: "Phillip A. Kavan" <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.