{"action":"created","issue":{"url":"https://api.github.com/repos/gnudatalanguage/gdl/issues/331","repository_url":"https://api.github.com/repos/gnudatalanguage/gdl","labels_url":"https://api.github.com/repos/gnudatalanguage/gdl/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/gnudatalanguage/gdl/issues/331/comments","events_url":"https://api.github.com/repos/gnudatalanguage/gdl/issues/331/events","html_url":"https://github.com/gnudatalanguage/gdl/pull/331","id":332282719,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0ODAxNTIx","number":331,"title":" Interim solution with widget_draw option.","user":{"login":"maynardGK","id":7710053,"node_id":"MDQ6VXNlcjc3MTAwNTM=","avatar_url":"https://avatars1.githubusercontent.com/u/7710053?v=4","gravatar_id":"","url":"https://api.github.com/users/maynardGK","html_url":"https://github.com/maynardGK","followers_url":"https://api.github.com/users/maynardGK/followers","following_url":"https://api.github.com/users/maynardGK/following{/other_user}","gists_url":"https://api.github.com/users/maynardGK/gists{/gist_id}","starred_url":"https://api.github.com/users/maynardGK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maynardGK/subscriptions","organizations_url":"https://api.github.com/users/maynardGK/orgs","repos_url":"https://api.github.com/users/maynardGK/repos","events_url":"https://api.github.com/users/maynardGK/events{/privacy}","received_events_url":"https://api.github.com/users/maynardGK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-14T07:30:11Z","updated_at":"2018-06-27T22:23:05Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/gnudatalanguage/gdl/pulls/331","html_url":"https://github.com/gnudatalanguage/gdl/pull/331","diff_url":"https://github.com/gnudatalanguage/gdl/pull/331.diff","patch_url":"https://github.com/gnudatalanguage/gdl/pull/331.patch"},"body":"      Current state of affairs is that \"WX\" was supposed to unify plotting and widgets, but\r\n    the plplot driver for WX is not quite as capable as a plain X driver or Win driver for the\r\n    simple plots.  However incorporating a plot  or image into a widget group requires this. To do so,\r\n    set GDL_USE_WX=YES in the environment.\r\n\r\n      If you avoid plotting or images, you can have your widgets and your plots by building GDL\r\n    with \"NO_WIDGET_DRAW\" macro set.  If this is so, \"X\" or \"WIN\" plot drivers and widgets will coexist,\r\n    but widget_DRAW will return a widget ID of -1; the widget routine is prepared for this.\r\n    Under batch build conditions neither of these will be set.  OSX/Clang build fails a simple window\r\n    creation test when wx initialization occurs, and so the initialization, which is imperative for widget operation, is hidden in these two conditions.\r\n\r\n      The UnsetFocus() is restored and plotting can be tested by running testsuite/testfocus\r\n    which will put up 5 plots and iconize two of them.\r\n    demo_widgets.pro and test_widgets.pro are both conditioned to expect a non-working widget_draw.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gnudatalanguage/gdl/issues/comments/400848448","html_url":"https://github.com/gnudatalanguage/gdl/pull/331#issuecomment-400848448","issue_url":"https://api.github.com/repos/gnudatalanguage/gdl/issues/331","id":400848448,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDg0ODQ0OA==","user":{"login":"maynardGK","id":7710053,"node_id":"MDQ6VXNlcjc3MTAwNTM=","avatar_url":"https://avatars1.githubusercontent.com/u/7710053?v=4","gravatar_id":"","url":"https://api.github.com/users/maynardGK","html_url":"https://github.com/maynardGK","followers_url":"https://api.github.com/users/maynardGK/followers","following_url":"https://api.github.com/users/maynardGK/following{/other_user}","gists_url":"https://api.github.com/users/maynardGK/gists{/gist_id}","starred_url":"https://api.github.com/users/maynardGK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maynardGK/subscriptions","organizations_url":"https://api.github.com/users/maynardGK/orgs","repos_url":"https://api.github.com/users/maynardGK/repos","events_url":"https://api.github.com/users/maynardGK/events{/privacy}","received_events_url":"https://api.github.com/users/maynardGK/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T22:23:05Z","updated_at":"2018-06-27T22:23:05Z","author_association":"CONTRIBUTOR","body":"@GillesDuvert for X11 the situation is much better, but it is my experience that use of the widget_draw while the plot device is \"WIN', does not work well - hardly at all.  When the plplot device driver is also WX,\r\nhowever, the widget behavior is as good as it gets, but the window plotting suffers.  So, the patch allows the best behavior of widgets and windows to co-exist, at the sacrifice of the widget_draw routine.\r\n\r\nThe only bug I found here was, that OSX with clang compiler does not tolerate wxWidget initialization."}}
{"actor":{"display_login":"maynardGK"}}