Custom Shape Window and standardWindowButton
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