Width of a menu (or menu item)
Width of a menu (or menu item)
- Subject: Width of a menu (or menu item)
- From: TACKEL <email@hidden>
- Date: Mon, 24 Nov 2003 19:36:33 +0100
Hi all,
I've found exactly the same problem that the email below. Has anybody of you a
solution?
Thanks,
Tackel
-------------------
Width of a menu (or menu item)
FROM: Jeffrey Mattox
DATE: 2003-03-02 07:22
I have a popup menu that drops down from the status menu. I need to
compute the optimal screen location before showing the menu. All I
need to know is how wide the menu will be (e.g., 200 pixels) prior to
the menu appearing.
Given:
NSMenu *theMenu = ... // already contains the menu items
is there a way to get the width of that menu?
If not, is there a way to get the width of an NSMenuIItem?
Jeff
_______________________________________________
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.