#217 Fail to add menu item to Macro menú if Menu Bar is hiden

closed
DV
NppExec (13)
5
2013-04-17
2013-02-27
Lukas238
No

WHAT HAPPENS: If you create a new script and then add it to the Macro menu, the new menu item is not added when Notepad++ starts if the menu bar is hidden.
Instead the new menu item is added to the plugin menu.

What should happen?
The new menu item should be added to the Macros menu regardless if the menu bar is hidden.

Thanks!!!!

Discussion

  • DV
    DV
    2013-02-27

    I am not sure if this can be done. When Notepad++ starts with hidden main menu, GetMenu(hNppWnd) returns NULL when plugins receive NPPN_READY notification. Having NULL as main menu, NppExec is not able to move its sub-menu items. Probably NPPM_INTERNAL_GETMENU can be used instead of GetMenu(hNppWnd), but I'm not sure if we can rely on this message since it's internal and unofficial.

     
  • DV
    DV
    2013-02-28

    Tried NPPM_INTERNAL_GETMENU - it works. Now I'm asking Don if it's OK to use this internal message from a plugin.

     
  • DV
    DV
    2013-03-13

    Will be fixed in next version of NppExec.

     
  • DV
    DV
    2013-04-17

    • status: open --> closed
     
  • DV
    DV
    2013-04-17

    NppExec v0.5.