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: Move window by dragging button



Actually the button is a huge, borderless button displaying an image,
so I'm not worried about the expected behavior of a NSButton per se.
What I'm looking for is a way to move a window with no titlebar, and
no background. The solution doesn't necessarily have to involve a
button. I just thought it convenient.

On Jan 14, 2008 11:57 PM, Hamish Allan <email@hidden> wrote:
>
> On Jan 14, 2008 10:41 PM,  <email@hidden> wrote:
>
> > I have a borderless, fully transparant window. The window contains a
> > button. I would like the user to be able to move this window by
> > dragging the button around, sort of a movableByWindowBackground thing
> > but for a button. Is this possible?
>
> Probably, but it's not the expected behaviour of push buttons (which
> fire when the mouse is *released* after being pressed within the
> region of the button) so I would very much caution against it.
>
> Hamish
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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/email@hidden

This email sent to email@hidden

References: 
 >Move window by dragging button (From: email@hidden)
 >Re: Move window by dragging button (From: "Hamish Allan" <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.