DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Customize bar menu did not work...

Solved!
Go to solution

I modified one of the DIAdem example for my requirement.  The original example was add custom menu bar for "REPORT" window.  After I update it from "REPORT" window to "NAVIGATOR" window, it only display 2 submenu items instead should be 3 (convert bin, load bin, and delete menu). Would anyone let me know why it is missing one subitem?

 

Thank you 

0 Kudos
Message 1 of 3
(4,268 Views)

Additional information for this bug.

0 Kudos
Message 2 of 3
(4,262 Views)
Solution
Accepted by topic author NiCoder

Found the bug in script

 

"NAVIGATOR" windows menu bar only has 6 item so the new item should be 7.  Updated script to following:

 

Call MenuReset

Call MenuItemAdd("NAVIGATOR", "7", "Popup", "My NAVIGATOR Menu")

Call MenuItemInsert("NAVIGATOR", "7.1", "MENUITEM", "Danny Bin...", sMenu81)

Call MenuItemInsert("NAVIGATOR", "7.2", "MENUITEM", "Load Bin...", sMenu82)

Call MenuItemInsert("NAVIGATOR", "7.3", "SEPARATOR", "", "")

Call MenuItemInsert("NAVIGATOR", "7.4", "MENUITEM", "Delete Menu", "Call MenuReset")

Call WndShow("NAVIGATOR")

0 Kudos
Message 3 of 3
(4,260 Views)