From: tnomad@digital.net (The Nomad) Subject: Re: [delphi] Newbie items in Mainmenu, How do you teach th Date: Tue, 20 Jun 95 07:12:38 EDT >How can I access an onclick event for a new item that was created during >runtime? Since the OnClick method is a property, when you dynamically create the menu item, also assign the name of on OnClick handler: theMenuitem.OnClick := TheOnClickHandler; Then, in the OnClick handler, you cast the sender into a TMenuItem and read the name: procedure theform.TheOnClickHandler(Sender: TObject); var fName: String; begin fName := TMenuItem(Sender).name; ... end; ************************************ * The Nomad * * tnomad@digital.net * ************************************