{"action":"reopened","issue":{"url":"https://api.github.com/repos/google/gxui/issues/102","labels_url":"https://api.github.com/repos/google/gxui/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/google/gxui/issues/102/comments","events_url":"https://api.github.com/repos/google/gxui/issues/102/events","html_url":"https://github.com/google/gxui/issues/102","id":67594489,"number":102,"title":"OnClik in PanelHolder.Tab()","user":{"login":"DoctorovEV","id":11792890,"avatar_url":"https://avatars.githubusercontent.com/u/11792890?v=3","gravatar_id":"","url":"https://api.github.com/users/DoctorovEV","html_url":"https://github.com/DoctorovEV","followers_url":"https://api.github.com/users/DoctorovEV/followers","following_url":"https://api.github.com/users/DoctorovEV/following{/other_user}","gists_url":"https://api.github.com/users/DoctorovEV/gists{/gist_id}","starred_url":"https://api.github.com/users/DoctorovEV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoctorovEV/subscriptions","organizations_url":"https://api.github.com/users/DoctorovEV/orgs","repos_url":"https://api.github.com/users/DoctorovEV/repos","events_url":"https://api.github.com/users/DoctorovEV/events{/privacy}","received_events_url":"https://api.github.com/users/DoctorovEV/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-04-10T13:24:26Z","updated_at":"2015-04-11T14:50:59Z","closed_at":null,"body":"Ben, good health ! \r\nStrange behavior: if you click on the Tab quickly ceases to be called a handler. Try different options and see the wrong result.\r\n\r\npackage main\r\n\r\nimport (\r\n \r\n    \"github.com/google/gxui\"\r\n    \"github.com/google/gxui/drivers/gl\"\r\n    \"github.com/google/gxui/themes/dark\"\r\n    \"strconv\"\r\n    \"fmt\"\r\n)\r\n\r\nfunc appMain(driver gxui.Driver) {\r\n    theme := dark.CreateTheme(driver)\r\n\r\n    holder := theme.CreatePanelHolder()\r\n    for i:=0; i<15 ; i++ {\r\n        image := theme.CreateImage()\r\n        holder.AddPanel(image, \"New \"+strconv.Itoa(i))\r\n        a := i\r\n        holder.Tab(i).OnClick(func (gxui.MouseEvent) {fmt.Println(a)})\r\n    }\r\n    window := theme.CreateWindow(800, 600, \"test the txt box\")\r\n    window.AddChild(holder)\r\n    window.OnClose(driver.Terminate)\r\n\r\n}\r\nfunc main() {\r\n    gl.StartDriver(appMain)\r\n}"}}