{"action":"created","issue":{"url":"https://api.github.com/repos/RRUZ/vcl-styles-utils/issues/178","repository_url":"https://api.github.com/repos/RRUZ/vcl-styles-utils","labels_url":"https://api.github.com/repos/RRUZ/vcl-styles-utils/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/RRUZ/vcl-styles-utils/issues/178/comments","events_url":"https://api.github.com/repos/RRUZ/vcl-styles-utils/issues/178/events","html_url":"https://github.com/RRUZ/vcl-styles-utils/issues/178","id":136883716,"number":178,"title":"sugestion","user":{"login":"cleberlr","id":12419498,"avatar_url":"https://avatars.githubusercontent.com/u/12419498?v=3","gravatar_id":"","url":"https://api.github.com/users/cleberlr","html_url":"https://github.com/cleberlr","followers_url":"https://api.github.com/users/cleberlr/followers","following_url":"https://api.github.com/users/cleberlr/following{/other_user}","gists_url":"https://api.github.com/users/cleberlr/gists{/gist_id}","starred_url":"https://api.github.com/users/cleberlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cleberlr/subscriptions","organizations_url":"https://api.github.com/users/cleberlr/orgs","repos_url":"https://api.github.com/users/cleberlr/repos","events_url":"https://api.github.com/users/cleberlr/events{/privacy}","received_events_url":"https://api.github.com/users/cleberlr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-27T06:03:20Z","updated_at":"2016-02-27T16:46:43Z","closed_at":null,"body":"Sugestion of change in code of Unit Vcl.Styles.Utils.Menus\r\nfrom\r\n` if (LParentMenu <> nil) and (LParentMenu.OwnerDraw) and (@LMenuItem.OnDrawItem <> nil) then\r\n  begin\r\n    LMenuItem.OnDrawItem(LMenuItem, Canvas, ItemRect, (isHot in State));\r\n    Exit;\r\n  end;\r\n\r\n\r\n  if (LParentMenu <> nil) and (LParentMenu.OwnerDraw) and (LMenuItem <> nil) and (@LMenuItem.OnAdvancedDrawItem <> nil) then\r\n  begin\r\n    LOwnerDrawState := [];\r\n\r\n    if isHot in State then\r\n      Include(LOwnerDrawState, odSelected);\r\n    if isDisabled in State then\r\n      Include(LOwnerDrawState, odDisabled);\r\n    if isChecked in State then\r\n      Include(LOwnerDrawState, odChecked);\r\n    if isDefault in State then\r\n      Include(LOwnerDrawState, odDefault);\r\n\r\n    LMenuItem.OnAdvancedDrawItem(LMenuItem, Canvas, ItemRect, LOwnerDrawState);\r\n    Exit;\r\n  end;\r\n`\r\n\r\nto\r\n`  if (LParentMenu <> nil) and (LMenuItem <> nil) then\r\n  begin\r\n    if (LParentMenu.OwnerDraw) and (@LMenuItem.OnDrawItem <> nil) then\r\n    begin\r\n      LMenuItem.OnDrawItem(LMenuItem, Canvas, ItemRect, (isHot in State));\r\n      Exit;\r\n    end;\r\n  end;\r\n\r\n  if (LParentMenu <> nil) and (LMenuItem <> nil) then\r\n  begin\r\n    if (LParentMenu.OwnerDraw) and (@LMenuItem.OnAdvancedDrawItem <> nil) then\r\n    begin\r\n      LOwnerDrawState := [];\r\n\r\n      if isHot in State then\r\n        Include(LOwnerDrawState, odSelected);\r\n      if isDisabled in State then\r\n        Include(LOwnerDrawState, odDisabled);\r\n      if isChecked in State then\r\n        Include(LOwnerDrawState, odChecked);\r\n      if isDefault in State then\r\n        Include(LOwnerDrawState, odDefault);\r\n\r\n      LMenuItem.OnAdvancedDrawItem(LMenuItem, Canvas, ItemRect, LOwnerDrawState);\r\n      Exit;\r\n    end;\r\n  end;\r\n`"},"comment":{"url":"https://api.github.com/repos/RRUZ/vcl-styles-utils/issues/comments/189680809","html_url":"https://github.com/RRUZ/vcl-styles-utils/issues/178#issuecomment-189680809","issue_url":"https://api.github.com/repos/RRUZ/vcl-styles-utils/issues/178","id":189680809,"user":{"login":"RRUZ","id":11446959,"avatar_url":"https://avatars.githubusercontent.com/u/11446959?v=3","gravatar_id":"","url":"https://api.github.com/users/RRUZ","html_url":"https://github.com/RRUZ","followers_url":"https://api.github.com/users/RRUZ/followers","following_url":"https://api.github.com/users/RRUZ/following{/other_user}","gists_url":"https://api.github.com/users/RRUZ/gists{/gist_id}","starred_url":"https://api.github.com/users/RRUZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RRUZ/subscriptions","organizations_url":"https://api.github.com/users/RRUZ/orgs","repos_url":"https://api.github.com/users/RRUZ/repos","events_url":"https://api.github.com/users/RRUZ/events{/privacy}","received_events_url":"https://api.github.com/users/RRUZ/received_events","type":"User","site_admin":false},"created_at":"2016-02-27T16:46:43Z","updated_at":"2016-02-27T16:46:43Z","body":"Hi, why is the reason for this suggestion? Any bug? "}}