Link to home
Start Free TrialLog in
Avatar of Palamedes
PalamedesFlag for United States of America

asked on

TMenuItem.Create ... Not creating?

var
  menuItemA:TMenuItem;
begin
menuItemA := TMenuItem.Create(form1.popupMenuA);
menuItemA.caption:='TEST';


Why doesn't this work?  I am using Delphi 5 and I am trying to create entries on a popup menu at runtime.  It seems to work, but the entree never shows up on the pop up menu.. I can't figure out where it is going..  Im sure its something simple Im not doing.. I tried to assign the parent,  menuItemA.parent := popupMenuA;  but that didnt work.. its now read only in D5 evidently..

Any help..thanks..

-Pal

ASKER CERTIFIED SOLUTION
Avatar of brainware
brainware

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Palamedes

ASKER

Thanks a bunch..