Jump to content

uniTreemenu switching sourcemenu on runtime


mierlp

Recommended Posts

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
Link to comment
Share on other sites

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...