TPopupMenu Erase all Item Root › Technical support › Troubleshooting This topic has 2 replies, 2 voices, and was last updated 14 years ago by BuzzLeclaire. Viewing 3 posts - 1 through 3 (of 3 total) Author Posts November 11, 2010 at 10:54 am #34085 BuzzLeclaireParticipant Hello all, Sorry for my speak english, i am french. When i delete all item as : Code: procedure TFFichiers.DelItem; Var i: Integer; begin for i := PopupMenuVues.Items.Count – 1 downto 0 do PopupMenuVues.Items.Delete(i); end; Then when I created new Code: // … MenuItem := TMenuItem.Create(PopupMenuVues); MenuItem.Caption := FieldByName('Nom').AsString; MenuItem.Hint := FieldByName('Tri').AsString; if FieldByName('Initiale').AsBoolean then begin Vues := FieldByName('Nom').AsString; MenuItem.Checked := FieldByName('Initiale').AsBoolean; end; MenuItem.OnClick := VueClick; PopupMenuVues.Items.Add(MenuItem); // … Then we lose the skin !!! To solve my problem, I am obliged to 1) Hide 2) AddItem 3) Show my form The problem is that I already do in the show Additem…. where have this problem? Thx November 11, 2010 at 7:19 pm #43712 emailayaParticipant after adding all the relevant items to the menu add this line .SkinableMenus.HookPopupMenu(pmMenu, True); also you can delete menu items by a simple pmMenu.items.Clear; November 11, 2010 at 7:55 pm #43714 BuzzLeclaireParticipant Hello, emailaya Thx for help. This solution is perfect. 😉 Author Posts Viewing 3 posts - 1 through 3 (of 3 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In Root › Technical support › Troubleshooting