So there's NO way of implicitly setting the menu's width? If that's the case I may instead try using something like a listbox that is made visible on a right-click.
from Robert Meek dba Tangentals Design -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Kennedy Sent: Wednesday, January 04, 2006 6:29 PM To: Borland's Delphi Discussion List Subject: Re: Manual placement of popup menus D2006 Win32 Robert Meek wrote: > I know I can use the menu's OnPopUp event but how do I position and > set the width properly... Display the menu by calling its Popup method. You specify its coordinates there. The width is determined entirely by the contents of the menu items. > and how do I determine if the menu should be > displayed above or below it's bitbtn? Thanx in advance! If you call the TrackPopupMenu API function directly, you can give it a screen region in which it should not display itself. Use the bounds of the button as that region. -- Rob _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

