Jump to content

Recommended Posts

Posted

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

 

  • Like 1
Posted


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

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...