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: Live Slider Behavior



Hey Mike,

Thanks for that. Your code does exactly what I want. The only problem I had with it is that when the MyActionWithValue routine is called, the clipped region is preventing display of my text control so I had to save the clip region, unclip, draw and then restore the clip region. Worked fine after that.

Apple developers take note. Hopefully "Lion" or before will implement Mike's code!

Jeremy

On May 17, 2006, at 1:07 PM, Mike Kluev wrote:

static void MyActionWithValue(ControlRef c, long value)

{

//    .... do  whatever

    Str255 str;


    NumToString(value, str);

    SetControlData(_staticText, kControlEntireControl,

        kControlStaticTextTextTag, str[0], str+1);

}


 _______________________________________________
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



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.