C
coolqiang
Unregistered / Unconfirmed
GUEST, unregistred user!
我在程序中动态生成几个菜单项,发现系统自动加上了(&0)、(&1)等我不需要的东西。
for i := 0 to n-1 do
begin
PopupItems := TMenuItem.Create(Self);
PopupItems.Caption := '菜单' + IntToStr(i);
PopupMenu.Items.Add(PopupItems);
end;
for i := 0 to n-1 do
begin
PopupItems := TMenuItem.Create(Self);
PopupItems.Caption := '菜单' + IntToStr(i);
PopupMenu.Items.Add(PopupItems);
end;