Re: Pointy Menu Like in Dock
Re: Pointy Menu Like in Dock
- Subject: Re: Pointy Menu Like in Dock
- From: Scott Thompson <email@hidden>
- Date: Mon, 5 Apr 2004 21:14:16 -0500
Yes -- That's what I'm trying to find. Are you saying that I should
just make a borderless window and draw this menu and the little
triangle in it?
Windows only respond to clicks in them that happen to hit opaque
pixels. Therefore, if you want to create a window with a
non-rectangular area what you can do is create a borderless transparent
window. Your window will respond to clicks only in those pixels where
you draw something. This is demonstrated in the sample code :
<
http://developer.apple.com/samplecode/RoundTransparentWindow/
RoundTransparentWindow.html>
If you can get a menu to draw and track in a window, what you could do
is create a "pointer" shaped window by creating a transparent window
and drawing the opaque pointer shape where you want it to be. Then
draw the menu on top of it.
I'm not sure how you can go about adding a menu to a window and getting
it to track properly. If you've already got this figured out then the
rest should be easy :-)
Scott
_______________________________________________
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.