{"action":"created","issue":{"url":"https://api.github.com/repos/geekammo/MicroView-Arduino-Library/issues/26","labels_url":"https://api.github.com/repos/geekammo/MicroView-Arduino-Library/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/geekammo/MicroView-Arduino-Library/issues/26/comments","events_url":"https://api.github.com/repos/geekammo/MicroView-Arduino-Library/issues/26/events","html_url":"https://github.com/geekammo/MicroView-Arduino-Library/issues/26","id":64306601,"number":26,"title":"hide widgets","user":{"login":"vliedel","id":2011969,"avatar_url":"https://avatars.githubusercontent.com/u/2011969?v=3","gravatar_id":"","url":"https://api.github.com/users/vliedel","html_url":"https://github.com/vliedel","followers_url":"https://api.github.com/users/vliedel/followers","following_url":"https://api.github.com/users/vliedel/following{/other_user}","gists_url":"https://api.github.com/users/vliedel/gists{/gist_id}","starred_url":"https://api.github.com/users/vliedel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vliedel/subscriptions","organizations_url":"https://api.github.com/users/vliedel/orgs","repos_url":"https://api.github.com/users/vliedel/repos","events_url":"https://api.github.com/users/vliedel/events{/privacy}","received_events_url":"https://api.github.com/users/vliedel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-25T16:02:25Z","updated_at":"2015-03-25T22:51:58Z","closed_at":null,"body":"Hi, it would be a nice feature to be able to hide widgets, so that they don't get displayed.\r\nThis way you can easily switch between 2 different screens, without storing all the values yourself."},"comment":{"url":"https://api.github.com/repos/geekammo/MicroView-Arduino-Library/issues/comments/86243969","html_url":"https://github.com/geekammo/MicroView-Arduino-Library/issues/26#issuecomment-86243969","issue_url":"https://api.github.com/repos/geekammo/MicroView-Arduino-Library/issues/26","id":86243969,"user":{"login":"MLXXXp","id":8151717,"avatar_url":"https://avatars.githubusercontent.com/u/8151717?v=3","gravatar_id":"","url":"https://api.github.com/users/MLXXXp","html_url":"https://github.com/MLXXXp","followers_url":"https://api.github.com/users/MLXXXp/followers","following_url":"https://api.github.com/users/MLXXXp/following{/other_user}","gists_url":"https://api.github.com/users/MLXXXp/gists{/gist_id}","starred_url":"https://api.github.com/users/MLXXXp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MLXXXp/subscriptions","organizations_url":"https://api.github.com/users/MLXXXp/orgs","repos_url":"https://api.github.com/users/MLXXXp/repos","events_url":"https://api.github.com/users/MLXXXp/events{/privacy}","received_events_url":"https://api.github.com/users/MLXXXp/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T22:51:58Z","updated_at":"2015-03-25T22:51:58Z","body":"@jpliew, I was going to suggest the same thing.\r\nHowever, @vliedel I think what you're trying to point out is that when you use **setValue()** to change the widget value, it also draws the new value to the screen buffer. This means you can't change the value of widgets that you want \"hidden\" (meaning they're not on the current display). You would have to create and update copies of the values of hidden widgets and then use them with **setValue()** only when you \"unhide\" them.\r\n\r\nI've made changes to the widget **setValue()** function in the library. I overloaded it to add a new optional second argument **doDraw**. If you include this argument and set it to *false*, the value is set but the display buffer isn't updated. If set to *true*, or you don't include the second argument, it works as before and the display buffer is updated with the new value.\r\n\r\nThese changes are in the *widget_setvalue_nodraw* branch of my fork of the library. You can get the changed library for testing from here:\r\nhttps://github.com/MLXXXp/MicroView-Arduino-Library/tree/widget_setvalue_nodraw\r\n\r\nIf these changes work, and solve the problem adequately, and there are no objections, I can create a pull request to have them added here in the official geekammo library.\r\n"}}