On 9 Nov 2008, at 4:22 am, Jean-Nicolas Jolivet wrote:

The problem is, I don't really have enough "room" or space in my application window to display a rectangle that big... so I'm not sure how I could do it... ? Perhaps with a floating panel that gets resized when my slider is dragged?? Or is there a way that I can draw a rectangle or something "in front" or "over" all of my window's controls, and hide that rectangle once the slider is released??

I'm not really looking for exact code, but more for ideas on how to implement something like that...


Keep it simple: why not just use two text fields, for width and height. The user can then drag the slider or simply type in the sizes they want. For bonus points, add a checkbox to preserve aspect ratio... While not as 'exciting' as a rectangle preview, it's probably more useful. Additional feedback such as the amount the image is going to be scaled by might be an idea too (e.g. '1.5x', '2.3x', etc)

Incidentally, in most interfaces where I have a value that is changed, I use the triple whammy - slider, text field and stepper, all setting the same thing. Then the user can't really complain that they don't have options ;-)

--Graham
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to