{"action":"created","issue":{"url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1612","repository_url":"https://api.github.com/repos/cefsharp/CefSharp","labels_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1612/labels{/name}","comments_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1612/comments","events_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1612/events","html_url":"https://github.com/cefsharp/CefSharp/issues/1612","id":136767040,"number":1612,"title":"How to automatically display which check items and radio item have been selected upon user interaction?","user":{"login":"Matthew-Bonner","id":7858744,"avatar_url":"https://avatars.githubusercontent.com/u/7858744?v=3","gravatar_id":"","url":"https://api.github.com/users/Matthew-Bonner","html_url":"https://github.com/Matthew-Bonner","followers_url":"https://api.github.com/users/Matthew-Bonner/followers","following_url":"https://api.github.com/users/Matthew-Bonner/following{/other_user}","gists_url":"https://api.github.com/users/Matthew-Bonner/gists{/gist_id}","starred_url":"https://api.github.com/users/Matthew-Bonner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matthew-Bonner/subscriptions","organizations_url":"https://api.github.com/users/Matthew-Bonner/orgs","repos_url":"https://api.github.com/users/Matthew-Bonner/repos","events_url":"https://api.github.com/users/Matthew-Bonner/events{/privacy}","received_events_url":"https://api.github.com/users/Matthew-Bonner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cefsharp/CefSharp/labels/upstream","name":"upstream","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-26T17:57:11Z","updated_at":"2016-02-27T21:06:30Z","closed_at":null,"body":"In commit 110789d there are now options for adding different types of menu commands, upon adding a check item and running the application, when the check item is clicked it isn't automatically checked and there is a similar problem with the radio items whereby clicking a deselected radio item does not select it and deselect the previously selected radio item.\r\n\r\nIs it a requirement to manually call the SetChecked method to indicate that the check item and radio item are now selected upon the user clicking them?\r\n\r\nI would have expected this to be done automatically.\r\n\r\n```cs\r\nusing CefSharp;\r\n\r\nnamespace Company.Product.Example.UserInterface\r\n{\r\n    internal class MenuHandler : IContextMenuHandler\r\n    {\r\n        private const int MenuCommandView = 26500;\r\n        private const int MenuCommandViewLargeIcons = 26501;\r\n        private const int MenuCommandViewMediumIcons = 26502;\r\n        private const int MenuCommandViewSmallIcons = 26503;\r\n        private const int MenuCommandViewAutoArrangeIcons = 26504;\r\n        private const int MenuCommandViewAlignIconsToGrid = 26505;\r\n\r\n        void IContextMenuHandler.OnBeforeContextMenu(IWebBrowser browserControl, IBrowser browser, IFrame frame, IContextMenuParams parameters, IMenuModel model)\r\n        {\r\n            model.Clear();\r\n\r\n            IMenuModel viewMenu = model.AddSubMenu((CefMenuCommand)MenuCommandView, \"View\");\r\n            viewMenu.AddRadioItem((CefMenuCommand)MenuCommandViewLargeIcons, \"Large icons\", 0);\r\n            viewMenu.AddRadioItem((CefMenuCommand)MenuCommandViewMediumIcons, \"Medium icons\", 0);\r\n            viewMenu.AddRadioItem((CefMenuCommand)MenuCommandViewSmallIcons, \"Small icons\", 0);\r\n\r\n            viewMenu.AddSeparator();\r\n\r\n            viewMenu.AddCheckItem((CefMenuCommand)MenuCommandViewAutoArrangeIcons, \"Auto arrange icons\");\r\n            viewMenu.AddCheckItem((CefMenuCommand)MenuCommandViewAlignIconsToGrid, \"Align icons to grid\");\r\n        }\r\n\r\n        bool IContextMenuHandler.OnContextMenuCommand(IWebBrowser browserControl, IBrowser browser, IFrame frame, IContextMenuParams parameters, CefMenuCommand commandId, CefEventFlags eventFlags)\r\n        {\r\n            return false;\r\n        }\r\n\r\n        void IContextMenuHandler.OnContextMenuDismissed(IWebBrowser browserControl, IBrowser browser, IFrame frame)\r\n        {\r\n        }\r\n\r\n        bool IContextMenuHandler.RunContextMenu(IWebBrowser browserControl, IBrowser browser, IFrame frame, IContextMenuParams parameters, IMenuModel model, IRunContextMenuCallback callback)\r\n        {\r\n            return false;\r\n        }\r\n    }\r\n}"},"comment":{"url":"https://api.github.com/repos/cefsharp/CefSharp/issues/comments/189726195","html_url":"https://github.com/cefsharp/CefSharp/issues/1612#issuecomment-189726195","issue_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/1612","id":189726195,"user":{"login":"amaitland","id":307872,"avatar_url":"https://avatars.githubusercontent.com/u/307872?v=3","gravatar_id":"","url":"https://api.github.com/users/amaitland","html_url":"https://github.com/amaitland","followers_url":"https://api.github.com/users/amaitland/followers","following_url":"https://api.github.com/users/amaitland/following{/other_user}","gists_url":"https://api.github.com/users/amaitland/gists{/gist_id}","starred_url":"https://api.github.com/users/amaitland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaitland/subscriptions","organizations_url":"https://api.github.com/users/amaitland/orgs","repos_url":"https://api.github.com/users/amaitland/repos","events_url":"https://api.github.com/users/amaitland/events{/privacy}","received_events_url":"https://api.github.com/users/amaitland/received_events","type":"User","site_admin":false},"created_at":"2016-02-27T21:06:30Z","updated_at":"2016-02-27T21:06:30Z","body":"> Thanks once again for a quick response. Can you label this upstream and keep it open while I check on the CEF forums. I'll post an update here once I have one.\r\n\r\nDone :+1: "}}