Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2008 Feb : TMenuItem.OnAdvancedDrawItem for "Window" SubItems

www.cryer.info
Managed Newsgroup Archive

TMenuItem.OnAdvancedDrawItem for "Window" SubItems

Subject:TMenuItem.OnAdvancedDrawItem for "Window" SubItems
Posted by:"Neo" (neomav..@hotmail.com)
Date:Fri, 15 Feb 2008 15:54:22

I wrote an MDI application that has a generic handler for the
OnAdvancedDrawItem event for each one of the TMEnuItems within a
TMainMenu. This handler is assigned dynamically in the OnCreate MainForm
(Iterating Items).
The problem is that MainForm has a Menu property, and this create an
item for each MDIChild Form.

How do I assign OnAdvancedDrawItem event of such items created
dynamically?   In Oncreate not yet exist!

Sorry for my english

Replies:

www.cryer.info
Managed Newsgroup Archive