Palamedes
asked on
TMenuItem.Create ... Not creating?
var
menuItemA:TMenuItem;
begin
menuItemA := TMenuItem.Create(form1.pop upMenuA);
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
menuItemA:TMenuItem;
begin
menuItemA := TMenuItem.Create(form1.pop
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER