mierlp Posted August 2, 2020 Posted August 2, 2020 Hi My uniTreeMenu has default a SourceMenu attached. When the user select a certain menu option there must be 'loaded' and show a other SourceMenu to the uniTreeMenu, so i use uniTreeMenu.SourceMenu:= uniMenu_Production. Now this new menu will be showed below the current menu....so which is not correct, and i try: UniTreeMenu.Items.clear UniTreeMenu.SourceMenu := UniMenu_Production; UniTreeMenu.Refresh; UniTreeMenu.Repaint; The first line(uniTreeMenu.items.clear) gives me a error message 'TUniCustomTreeView: Node not foud, Id:4' Which is the menuitems the user clicks...so that's explainable. Whats the correct way of switching sourcemenu's on runtime. I have looked on several topics, but non have the solutions Regards Peter 1 Quote
Wilton Ergon Posted August 3, 2020 Posted August 3, 2020 I also need this, when the user changes the access profile in the main menu, I must reload the menu, and depending on the profile it may be necessary to hide some menus, and this only works in the create form, it is not working after that 1 Quote
Sherzod Posted August 8, 2020 Posted August 8, 2020 8 minutes ago, mierlp said: @Sherzod do you know a solution? Maybe you need to use a filter... 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.