• 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
Custom Shape Window and standardWindowButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom Shape Window and standardWindowButton


  • Subject: Custom Shape Window and standardWindowButton
  • From: Ohad Levin <email@hidden>
  • Date: Wed, 18 Apr 2007 15:55:53 -0700
  • Importance: Normal

Hi,I have a custom shape window (transparent window and image view) and I would like to add the standard close, zoom and miniaturize buttons.Using +standardWindowButton:forStyleMask I'm able to get these buttons and add them to my view, however I can't get the normal button behavior mainly:Mouse over and Click.Here's a snippet from my code:btnClose = [NSWindow standardWindowButton:NSWindowCloseButton forStyleMask:0];[btnClose setEnabled:YES];[btnClose setAllowsMixedState:YES];[customView addSubview:btnClose];Any ideas? Thanks,Ohad
_________________________________________________________________
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

  • Prev by Date: mDNS Service Discovery and Text Record access
  • Next by Date: Re: mDNS Service Discovery and Text Record access
  • Previous by thread: Re: mDNS Service Discovery and Text Record access
  • Next by thread: NSTableView and first responder
  • Index(es):
    • Date
    • Thread