Article

From:
To:
Lorne Anderson
Subject:
Re: TrackPopupMenuEx and owner draw
Newsgroup:
embarcadero.public.delphi.language.delphi.general

Re: TrackPopupMenuEx and owner draw

"Lorne Anderson" <✉hotmail.com> wrote in message 
news:✉forums.codegear.com...

> Does anybody know how to use TrackPopupMenuEx with
> owner draw Popup menus?

Just call it normally.  There is nothing special you have to do to let 
owner-drawing operate correctly.

> It appears to size and position the menu before the owner draw routines
> have executed any DrawItem or MeasureItem code so although the
> vertical position is OK the Width is wrong and nothing gets drawn.

Then the owner-drawing code is likely buggy to begin with.  Can you show the 
actual code?

-- Remy Lebeau (TeamB)
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Sat, 23 Nov 2024 21:25:49 UTC
Copyright © 2009-2024
HREF Tools Corp.