artem_niko Posted April 19, 2020 Posted April 19, 2020 Hello! I must work with UniTreeMenu and UniMenuItems in RunTime. What I want? I want execute this is actions: Clear RunTime items of UniMenuItems. Why in UniMenuItems? Because UniMenuItems having need to me a property as is UniMenuItem.Tag. In RunTime I want create items in UniMenuItems and this is items will see in UniTreeMenu. It's need me that when I make click on item in UniTreeMenu - I give value from UniMenuItems.Tag. Where UniTreeMenu.SourceMenu=UniMenuItems. I can't found answer on my question on forum. Because, for example, UniTreeMenu.Items.Clear not delete all items from tree. Quote
Sherzod Posted April 19, 2020 Posted April 19, 2020 4 hours ago, Артем said: UniTreeMenu.Items.Clear not delete all items from tree Hello, Which build of UniGUI are you using? Quote
artem_niko Posted April 19, 2020 Author Posted April 19, 2020 5 hours ago, Sherzod said: Hello, Which build of UniGUI are you using? Last. 1528. Quote
Sherzod Posted April 19, 2020 Posted April 19, 2020 39 minutes ago, Артем said: 1528. OK, can you please open a ticket in the support portal? You can try this approach for now: procedure TMainForm.UniButton1Click(Sender: TObject); begin with UniTreeMenu1 do begin JSInterface.JSCode(#1'.getStore().each(function(item){item.remove()});'); Items.Clear; end; end; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.