{"action":"created","issue":{"url":"https://api.github.com/repos/mobius3/KiWi/issues/15","repository_url":"https://api.github.com/repos/mobius3/KiWi","labels_url":"https://api.github.com/repos/mobius3/KiWi/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/mobius3/KiWi/issues/15/comments","events_url":"https://api.github.com/repos/mobius3/KiWi/issues/15/events","html_url":"https://github.com/mobius3/KiWi/issues/15","id":156721186,"number":15,"title":"Implementing a message box","user":{"login":"wasamasa","id":3588994,"avatar_url":"https://avatars.githubusercontent.com/u/3588994?v=3","gravatar_id":"","url":"https://api.github.com/users/wasamasa","html_url":"https://github.com/wasamasa","followers_url":"https://api.github.com/users/wasamasa/followers","following_url":"https://api.github.com/users/wasamasa/following{/other_user}","gists_url":"https://api.github.com/users/wasamasa/gists{/gist_id}","starred_url":"https://api.github.com/users/wasamasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wasamasa/subscriptions","organizations_url":"https://api.github.com/users/wasamasa/orgs","repos_url":"https://api.github.com/users/wasamasa/repos","events_url":"https://api.github.com/users/wasamasa/events{/privacy}","received_events_url":"https://api.github.com/users/wasamasa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mobius3/KiWi/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mobius3/KiWi/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"mobius3","id":945210,"avatar_url":"https://avatars.githubusercontent.com/u/945210?v=3","gravatar_id":"","url":"https://api.github.com/users/mobius3","html_url":"https://github.com/mobius3","followers_url":"https://api.github.com/users/mobius3/followers","following_url":"https://api.github.com/users/mobius3/following{/other_user}","gists_url":"https://api.github.com/users/mobius3/gists{/gist_id}","starred_url":"https://api.github.com/users/mobius3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobius3/subscriptions","organizations_url":"https://api.github.com/users/mobius3/orgs","repos_url":"https://api.github.com/users/mobius3/repos","events_url":"https://api.github.com/users/mobius3/events{/privacy}","received_events_url":"https://api.github.com/users/mobius3/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2016-05-25T10:57:08Z","updated_at":"2016-05-30T23:42:20Z","closed_at":null,"body":"I'm currently writing my custom hello world example which consists of a frame with two buttons, one of which quits the program and the other one displaying a (modal) message box with a single OK-button for closing it.  Ideally the latter would be a matter of using a convenience function, but that doesn't apper to exist yet.  Currently I have two ideas how one could implement it:\r\n\r\n- Draw a composite widget that is the child of the frame that looks like a message box, then write code for deleting/hiding it and invoke that on clicking the OK-button.  I've done this currently, but struggle with the deletion part.  Using `KW_DestroyWidget` is clearly not the right solution as that yields a SIGSEGV, setting the widget's geometry to an empty rectangle hides its frame, but leaves its child widgets still visible and drawn as children of the parent frame.\r\n- Create a new SDL2 window (and renderer?), create a new driver, create a new `KW_GUI` and draw the composite widget there.  What I don't really understand for that approach is how one would modify the SDL2 event loop to deal with the new window as long as it's open.\r\n\r\nThoughts on this?\r\n\r\nedit: I've found out that SDL2 provides `SDL_ShowSimpleMessageBox` which is sort of OK as it has the desired behavior, but looks totally different from the rest of KiWi and doesn't update the parent window (leading to the infamous Windows dragging glitch)."},"comment":{"url":"https://api.github.com/repos/mobius3/KiWi/issues/comments/222566313","html_url":"https://github.com/mobius3/KiWi/issues/15#issuecomment-222566313","issue_url":"https://api.github.com/repos/mobius3/KiWi/issues/15","id":222566313,"user":{"login":"mobius3","id":945210,"avatar_url":"https://avatars.githubusercontent.com/u/945210?v=3","gravatar_id":"","url":"https://api.github.com/users/mobius3","html_url":"https://github.com/mobius3","followers_url":"https://api.github.com/users/mobius3/followers","following_url":"https://api.github.com/users/mobius3/following{/other_user}","gists_url":"https://api.github.com/users/mobius3/gists{/gist_id}","starred_url":"https://api.github.com/users/mobius3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobius3/subscriptions","organizations_url":"https://api.github.com/users/mobius3/orgs","repos_url":"https://api.github.com/users/mobius3/repos","events_url":"https://api.github.com/users/mobius3/events{/privacy}","received_events_url":"https://api.github.com/users/mobius3/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T23:42:20Z","updated_at":"2016-05-30T23:42:20Z","body":"Hi, I've fixed the DestroyWidget bug in commit c663dea"}}
{"actor":{"display_login":"mobius3"}}