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