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: custom slider



On 5/29/06 12:22 PM, Mike Kluev didst favor us with:

> On Mon, 29 May 2006 09:05:51 -0700 silviu stefan <email@hidden>
> wrote:
> 
>> They don't work... Maybe i'm not doing it right:
>> I call GetEventParameter in the kEventControlDraw
>> event and than i make a switch after thr part code
>> obtained and draw the parts. I've tried for a single
>> part at first but still no luck...

Have you tried just drawing the thing?

> Read those headers. This parameter is optional (in which
> case GetEventParameter returns error):
> 
> *    --> kEventParamControlPart (in, typeControlPartCode)
> *          The control part code to draw. This parameter is optional
> *          and may not be present in all instances of this event. Draw
> *          the entire control if the parameter is not present.

I wouldn't expect it to be present for very many multi-part controls, and of
course you could probably draw the entire control all the time. It would
just be less efficient if you got multiple draw events with different part
codes.

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/email@hidden

This email sent to email@hidden

References: 
 >Re: custom slider (From: Mike Kluev <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.