{"id":2409,"date":"2009-03-27T12:13:30","date_gmt":"2009-03-27T12:13:30","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2009\/03\/27\/gui-layout-part-6\/"},"modified":"2009-03-27T12:13:30","modified_gmt":"2009-03-27T12:13:30","slug":"gui-layout-part-6","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2009\/03\/27\/gui-layout-part-6\/","title":{"rendered":"GUI Layout (Part 6)"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <p><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/15007\">Jiro<\/a>'s pick this week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/23073-uisplitpane-split-a-container--figure-frame-uipanel--into-two-resizable-sub-containers\"><tt>UISplitPane<\/tt><\/a> by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/27420\">Yair<\/a>.\r\n   <\/p>\r\n   <p>This is another GUI-related pick, following from previous entries - <a href=\"https:\/\/blogs.mathworks.com\/pick\/2008\/02\/15\/gui-layout-part-1\/\">Part 1<\/a>, <a href=\"https:\/\/blogs.mathworks.com\/pick\/2008\/02\/22\/gui-layout-part-2\/\">Part 2<\/a>, <a href=\"https:\/\/blogs.mathworks.com\/pick\/2008\/02\/29\/gui-layout-part-3\/\">Part 3<\/a>, <a href=\"https:\/\/blogs.mathworks.com\/pick\/2009\/02\/27\/gui-layout-part-4\/\">Part 4<\/a>, <a href=\"https:\/\/blogs.mathworks.com\/pick\/2009\/03\/06\/gui-layout-part-5\/\">Part 5<\/a>.\r\n   <\/p>\r\n   <p>Yair is a long-time contributor to the MATLAB community and has created numerous files that utilize MATLAB to its fullest\r\n      extent. This entry, with some help from Java, brings you a very useful GUI capability: resizing of components within a figure.\r\n      Now, you can interactively resize various components in your GUI, just like with MATLAB Desktop components. Here's an animated\r\n      GIF included with his submission:\r\n   <\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/uisplitpane_animated.gif\"> <\/p>\r\n   <p><b>Note<\/b>: <i>As Yair clearly states in his submission, it uses some undocumented\/unsupported MATLAB functionalities, so the behavior may\r\n         change in the future.<\/i><\/p>\r\n   <p><b>Comments<\/b><\/p>\r\n   <p>Have you ever extended MATLAB's capabilities with other technologies? Tell us about it <a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=2409#respond\">here<\/a>.\r\n   <\/p><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_be0e24d1e1af45eab668082c9f900ee9() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='be0e24d1e1af45eab668082c9f900ee9 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' be0e24d1e1af45eab668082c9f900ee9';\r\n    \r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n \r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        author = 'Jiro Doke';\r\n        copyright = 'Copyright 2008 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\\n');\r\n      \r\n      d.title = title + ' (MATLAB code)';\r\n      d.close();\r\n      }   \r\n      \r\n-->\r\n<\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_be0e24d1e1af45eab668082c9f900ee9()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n            the MATLAB code \r\n            <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; 7.8<br><\/p>\r\n<\/div>\r\n<!--\r\nbe0e24d1e1af45eab668082c9f900ee9 ##### SOURCE BEGIN #####\r\n%%\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/15007\r\n% Jiro>'s pick this week is\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/23073-uisplitpane-split-a-container--figure-frame-uipanel--into-two-resizable-sub-containers\r\n% |UISplitPane|> by \r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/27420\r\n% Yair>.\r\n%\r\n% This is another GUI-related pick, following from previous entries - \r\n% <https:\/\/blogs.mathworks.com\/pick\/2008\/02\/15\/gui-layout-part-1\/ Part 1>,\r\n% <https:\/\/blogs.mathworks.com\/pick\/2008\/02\/22\/gui-layout-part-2\/ Part 2>,\r\n% <https:\/\/blogs.mathworks.com\/pick\/2008\/02\/29\/gui-layout-part-3\/ Part 3>,\r\n% <https:\/\/blogs.mathworks.com\/pick\/2009\/02\/27\/gui-layout-part-4\/ Part 4>,\r\n% <https:\/\/blogs.mathworks.com\/pick\/2009\/03\/06\/gui-layout-part-5\/ Part 5>.\r\n%\r\n% Yair is a long-time contributor to the MATLAB community and has created\r\n% numerous files that utilize MATLAB to its fullest extent. This entry,\r\n% with some help from Java, brings you a very useful GUI capability:\r\n% resizing of components within a figure. Now, you can interactively resize\r\n% various components in your GUI, just like with MATLAB Desktop components.\r\n% Here's an animated GIF included with his submission:\r\n%\r\n% <<uisplitpane_animated.gif>>\r\n%\r\n% *Note*: _As Yair clearly states in his submission, it uses some\r\n% undocumented\/unsupported MATLAB functionalities, so the behavior may\r\n% change in the future._\r\n%\r\n% *Comments*\r\n%\r\n% Have you ever extended MATLAB's capabilities with other technologies?\r\n% Tell us about it <https:\/\/blogs.mathworks.com\/pick\/?p=2409#respond here>.\r\n##### SOURCE END ##### be0e24d1e1af45eab668082c9f900ee9\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   Jiro's pick this week is UISplitPane by Yair.\r\n   \r\n   This is another GUI-related pick, following from previous entries - Part 1, Part 2, Part 3, Part 4, Part 5.\r\n   \r\n   Yair is a long-time... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2009\/03\/27\/gui-layout-part-6\/\">read more >><\/a><\/p>","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2409"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2409"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2409\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}