{"action":"created","issue":{"url":"https://api.github.com/repos/cnjinhao/nana/issues/65","labels_url":"https://api.github.com/repos/cnjinhao/nana/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/cnjinhao/nana/issues/65/comments","events_url":"https://api.github.com/repos/cnjinhao/nana/issues/65/events","html_url":"https://github.com/cnjinhao/nana/issues/65","id":90529101,"number":65,"title":"Submenu in a menu bar does not work.","user":{"login":"beru","id":1131125,"avatar_url":"https://avatars.githubusercontent.com/u/1131125?v=3","gravatar_id":"","url":"https://api.github.com/users/beru","html_url":"https://github.com/beru","followers_url":"https://api.github.com/users/beru/followers","following_url":"https://api.github.com/users/beru/following{/other_user}","gists_url":"https://api.github.com/users/beru/gists{/gist_id}","starred_url":"https://api.github.com/users/beru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beru/subscriptions","organizations_url":"https://api.github.com/users/beru/orgs","repos_url":"https://api.github.com/users/beru/repos","events_url":"https://api.github.com/users/beru/events{/privacy}","received_events_url":"https://api.github.com/users/beru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-24T00:51:41Z","updated_at":"2015-06-28T23:36:03Z","closed_at":null,"body":"Hi, I'd like to use submenus in a menu bar but so far I can't make it work.\r\nI use below code to check the issue. Could you please take a look at it?\r\n\r\n```c++\r\n#include <nana/gui.hpp>\r\n#include <nana/gui/widgets/menubar.hpp>\r\n\r\nint main()\r\n{\r\n\tusing namespace nana;\r\n\r\n\tform fm(API::make_center(500, 300));\r\n\tfm.caption(L\"submenu test\");\r\n\t\r\n\tmenubar mb(fm);\r\n\tmb.push_back(L\"&File\");\r\n\tmb.push_back(L\"&View\");\r\n\r\n\tauto& menu_view = mb.at(1);\r\n\tmenu_view.append(L\"Test 0\");\r\n\tmenu_view.append(L\"Test 1\");\r\n\tmenu_view.create_sub_menu(1)->append(L\"aa\");\r\n\t\r\n\t// from http://nanapro.org/en-us/help/widgets/menu.htm\r\n\tmenu mobj;\r\n\tmobj.append(STR(\"Item 0\"));\r\n\tmobj.append(STR(\"Item 1\"));\r\n\t\tmobj.create_sub_menu(1)->append(STR(\"A sub menu item\"));\r\n\tmobj.renderer(mobj.renderer());\r\n\tmobj.item_pixels(30);\r\n\r\n\tfm.events().click(menu_popuper(mobj));\r\n\r\n\tfm.show();\r\n\texec();\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/cnjinhao/nana/issues/comments/116360728","html_url":"https://github.com/cnjinhao/nana/issues/65#issuecomment-116360728","issue_url":"https://api.github.com/repos/cnjinhao/nana/issues/65","id":116360728,"user":{"login":"cnjinhao","id":1246418,"avatar_url":"https://avatars.githubusercontent.com/u/1246418?v=3","gravatar_id":"","url":"https://api.github.com/users/cnjinhao","html_url":"https://github.com/cnjinhao","followers_url":"https://api.github.com/users/cnjinhao/followers","following_url":"https://api.github.com/users/cnjinhao/following{/other_user}","gists_url":"https://api.github.com/users/cnjinhao/gists{/gist_id}","starred_url":"https://api.github.com/users/cnjinhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnjinhao/subscriptions","organizations_url":"https://api.github.com/users/cnjinhao/orgs","repos_url":"https://api.github.com/users/cnjinhao/repos","events_url":"https://api.github.com/users/cnjinhao/events{/privacy}","received_events_url":"https://api.github.com/users/cnjinhao/received_events","type":"User","site_admin":false},"created_at":"2015-06-28T23:36:03Z","updated_at":"2015-06-28T23:36:03Z","body":"Hi, a fix for the menu bahavioral issues has checked into the hotfix branch. Look forward to your feedback."}}