Re: Custom Window Resize Image
Re: Custom Window Resize Image
- Subject: Re: Custom Window Resize Image
- From: "Mr. Gecko" <email@hidden>
- Date: Thu, 4 Dec 2008 22:28:40 -0600
Ok so I've done some looking around more in the documents, would it be
possible to make a button that has a picture of the grow box and than
have it send an action when it's dragged using NSLeftMouseDraggedMask.
On Dec 4, 2008, at 8:47 PM, Sean McBride wrote:
Ron Fleckner (email@hidden) on 2008-12-04 12:52 AM said:
Hello, I'm writing a custom window for my application, but I can't
figure out how to make a custom resize image... Any help?
Thanks,
Mr. Gecko
Unless you actually want a 'custom' resize image, you can use the
real
one found at /System/Library/WidgetResources/resize.png
If you wanted to draw the standard grow box, you could use
HIThemeDrawGrowBox(). Relying on that file being at that location
is fragile.
But...
Mr. Gecko (email@hidden) on 2008-12-04 1:01 PM said:
I'm not needing to know how to draw it, I'm needing to know how to
make it functional. so if someone clicks and drags it would resize
the
window.
That's not at all what you asked. :) Perhaps you could clarify? To
change a window's size you can use the setFrame... methods.
Sean
_______________________________________________
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