• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Move window by dragging button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Move window by dragging button


  • Subject: Re: Move window by dragging button
  • From: Glen Simmons <email@hidden>
  • Date: Mon, 14 Jan 2008 17:19:53 -0600


On Jan 14, 2008, at 4:57 PM, Hamish Allan 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.


Even worse, you'd be taking away an expected behavior - If I click on a button and change my mind mid-click, I can drag off of the button before releasing it and nothing happens. I would find your proposed behavior quite disconcerting. I would recommend having a graphic of some kind other than the button that would be used for dragging.

Glen
_______________________________________________

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

  • Prev by Date: Re: [SOLVED] Re: Disabling NSTableView's behavior of turning black text white
  • Next by Date: Re: Change in File Link Behavior in NSTextView Under Leopard
  • Previous by thread: Re: Move window by dragging button
  • Next by thread: Re: Move window by dragging button
  • Index(es):
    • Date
    • Thread