On 1/25/05 6:06 PM, Graham MacDonald didst favor us with:
>
> On 25 Jan 2005, at 07:13, Laurence Harris wrote:
>
>> On 1/25/05 1:47 AM, Graham MacDonald didst favor us with:
>>
>>> Hi, I'm using Carbon in a C/C++ app. I want to create a
>>> spinner/littleArrowsControl for floating point values. The current
>>> API
>>> only allows me to create CreateLittleArrowsControl which is for
>>> integers. The Cocoa API seems to allow doubles also. What's the
>>> easiest way for me to create a decimal version? Is there even an easy
>>> way? Thanks!
>>
>> Nothing fancy here. You just have to scale the values when you interpret
>> them.
>>
> In that case they'd still be displayed in the control as integers - I
> need to display floats. Is there any way to do that?
As Bryan says, the little arrows control doesn't display any numbers at all,
which you will see if you create one in IB. The only control I know that
displays values is the date/time control.
Really, this isn't that complicated. However, I don't know if the little
arrows control actually supports 32-bit values or just 16-bit values these
days.
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