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: Button clicked



Why I need a imgLeft, imgLeftClicked and so on. My button is only one image. Do I have to cut my Button into pieces?

Ludwig

Am 04.11.2005 um 22:13 schrieb John Louch:

There is a class for you to use now that does just that.

AppleButton in /System/Library/WidgetResources/AppleClasses/

AppleGlassButton is a subclass of AppleButton.

Thanks,
jl


Ludwig,

Generally, the most common way is to create two graphics for the
button, one representing the unclicked state and one representing the
clicked state. You can switch between the states using onmousedown
and onmouseup handlers on the image.

Let me know if you need more detail (or if I'm totally
misunderstanding you).

Ben
--
Ben Kazez
http://www.benkazez.com

On Nov 4, 2005, at 2:48 PM, Ludwig Villiger wrote:

Is there a easy way to show to the user, that the button was
clicked? I think of something like the genericButton from Apple,
but not so complicated. It should only change the color or become
darker when you click the button.

Greetings,
Ludwig _______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/kazezb%
40carleton.edu

This email sent to email@hidden

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

This email sent to email@hidden

-------------------------------------------------- John Louch Internet #: email@hidden (805) 541 2965



Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

This email sent to email@hidden

References: 
 >Re: Button clicked (From: John Louch <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.