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



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...

--- Laurence Harris <email@hidden> wrote:

> On 5/29/06 11:41 AM, silviu stefan didst favor us
> with:
> 
> > I'm aware that the slider parts must be drawn
> > separately, but i'm having a hard time in locating
> the
> > part codes... Could you tell me where to look for
> > them?!
> 
> I would try these:
> 
> From Controls.h:
> 
>   kControlIndicatorPart         =
> kAppearancePartIndicator,
> 
> From ControlDefinitions.h:
> 
>   kControlPageUpPart            =
> kAppearancePartPageUpArea,
>   kControlPageDownPart          =
> kAppearancePartPageDownArea,
> 
> Larry
> 
> > 
> > --- Laurence Harris <email@hidden> wrote:
> > 
> >> On 5/29/06 10:12 AM, silviu stefan didst favor us
> >> with:
> >> 
> >>> I'm currently trying your idea. But i still have
> a
> >>> problem...
> >>> 
> >>> How should i draw in kEventControlDraw event,
> the
> >>> indicator part and the track? I assume they must
> >> be
> >>> drawnn separatly. Are there any special codes
> for
> >>> these parts?
> >> 
> >> Assumptions are evil.
> >> 
> >> I haven't done this with a slider, but I wouldn't
> >> assume they have to be
> >> drawn separately. Well, yes, *you* need to draw
> them
> >> separately, but in the
> >> same kEventControlDraw event. It wouldn't make
> sense
> >> to get separate events
> >> for the track and the indicator.
> >> 
> >> Don't assume. Just draw it the way you want in
> the
> >> kEventControlDraw.
> >> 
> >> Larry
> >> 
> >>> 
> >>> --- Laurence Harris <email@hidden> wrote:
> >>> 
> >>>> On 5/29/06 7:49 AM, silviu stefan didst favor
> us
> >>>> with:
> >>>> 
> >>>>> Hi! 
> >>>>> 
> >>>>> I'm trying to make a custom slider using
> HIViews
> >> technologies. My custom
> >>>>> slider should act as a normal slider, only the
> >> way it looks should be
> >>>>> different (i'll have to use some bitmaps when
> >> drawing it).
> >>>>> 
> >>>>> Will i have to implement all the events (like
> >> tracking...) or it's possible
> >>>>> to subclass the slider class  (using
> >> HIObjectRegisterSubclass and pass as
> >>>>> parameter the slider class instead of HIView)
> >> and save some functionallity ?
> >>>> 
> >>>> Why not just use a regular slider and install a
> >>>> kEventControlDraw handler on
> >>>> it so you can draw it but let the system handle
> >>>> everything else?
> >>>> 
> >>>> Larry
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 _______________________________________________
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: Laurence Harris <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.