• 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: How to make borderless window resizable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make borderless window resizable


  • Subject: Re: How to make borderless window resizable
  • From: Ryan Bates <email@hidden>
  • Date: Tue, 17 Feb 2004 20:06:09 -0800

Unfortunately, you'll have to handle resizing manually because a resizable window requires a title bar. However, this shouldn't be too hard to implement. In an NSWindow subclass you can listen for the mouse down event; if it's in the bottom right corner then listen for dragging - resize the window based on the amount the mouse moves while it is dragging. I might be able to work up some quick code examples if you need them.

Ryan


On Feb 17, 2004, at 12:49 PM, Jan H|lsmann wrote:

Hello,
in my app I have a borderless window, as in the RoundTransparentWindow example provided by Apple, but without the round image.
How do I enable normal resizing behavior (i.e. click and drag the lower right corner)?
Is there something like
- (void)setIsResizeable:(BOOL)resizeable
to use with NSWindow?

Any thoughts?

TIA,
--Jan--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: How to make borderless window resizable
      • From: Jan Hülsmann <email@hidden>
References: 
 >How to make borderless window resizable (From: Jan Hülsmann <email@hidden>)

  • Prev by Date: Re: display an image in a button
  • Next by Date: Re: display an image in a button
  • Previous by thread: How to make borderless window resizable
  • Next by thread: Re: How to make borderless window resizable
  • Index(es):
    • Date
    • Thread