Gotta be careful with owner-draw though because then you lose all
the dynamic properties like orientation and expansion when an item is added
requiring more width.  I used a TMS TAdvMenu and Menu designer, a bit of
padding, and the popup event called from a right-mouse button down event and
it works and looks pretty good.  At least the style and colors/shading match
the regular menus which I wanted too.

from Robert Meek dba Tangentals Design


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Rob Kennedy
Sent: Thursday, January 05, 2006 11:22 PM
To: Borland's Delphi Discussion List
Subject: Re: Manual placement of popup menus D2006 Win32

I wrote:
> Robert Meek wrote:
>> So there's NO way of implicitly setting the menu's width?
> 
> No, implicitly is the *only* way of setting the width.

I think I'm wrong. Zayin points out owner-drawn menus. When you draw a 
menu yourself, you get to tell the OS how big the menu needs to be 
(since you haven't given any text with which the OS could measure the 
item itself).

-- 
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

Reply via email to