<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248979</link>
    <title>MATLAB Central Newsreader - Does Matlab need better GUI controls?</title>
    <description>Feed for thread: Does Matlab need better GUI controls?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 14 Apr 2009 03:37:01 -0400</pubDate>
      <title>Does Matlab need better GUI controls?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248979#642467</link>
      <author>John Ramshur</author>
      <description>With having experience programming in VB, VB.NET, and ASP.NET i've been disappointed in Matlab's GUI controls. Don't get me wrong Matlab is great for mathematical programming, but when you want to build a mathematical/scientific GUI it just seems to be behind others on the control styling. &lt;br&gt;
&lt;br&gt;
I'm in vista...I don't want a windows 98 looking GUI. Plus it wouldn't hurt to add some more types of controls and pull the uitab out of the &quot;undocumented&quot; section.&lt;br&gt;
&lt;br&gt;
I'm curious to hear others comment.</description>
    </item>
    <item>
      <pubDate>Tue, 14 Apr 2009 03:57:01 -0400</pubDate>
      <title>Re: Does Matlab need better GUI controls?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248979#642474</link>
      <author>Matt Fig</author>
      <description>&quot;Need?&quot;  Maybe not.&lt;br&gt;
&lt;br&gt;
Would I like an upgrade too?  Sure, why not.   Most of the GUIs I write are for instrument controls, and I don't really care about what they look like as long as they get the job done.</description>
    </item>
    <item>
      <pubDate>Tue, 14 Apr 2009 04:56:43 -0400</pubDate>
      <title>Re: Does Matlab need better GUI controls?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248979#642480</link>
      <author>Nasser Abbasi</author>
      <description>&lt;br&gt;
&quot;Matt Fig&quot; &amp;lt;spamanon@yahoo.com&amp;gt; wrote in message &lt;br&gt;
news:gs11id$fs2$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &quot;Need?&quot;  Maybe not.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Would I like an upgrade too?  Sure, why not.   Most of the GUIs I write &lt;br&gt;
&amp;gt; are for instrument controls, and I don't really care about what they look &lt;br&gt;
&amp;gt; like as long as they get the job done.&lt;br&gt;
&lt;br&gt;
True. But real tabbed GUI menus is a big missing item in Matlab GUI. As in&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://blogs.mathworks.com/pick/2007/03/08/tabbed-guis/&quot;&gt;http://blogs.mathworks.com/pick/2007/03/08/tabbed-guis/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
With tabbed GUI, one can manage controls better when there many of them. &lt;br&gt;
Right now, one has to put all control on one figure and it becomes cluttered &lt;br&gt;
as more controls are added.&lt;br&gt;
&lt;br&gt;
This has been discussed before, and the undocumented uitab was mentioned &lt;br&gt;
here&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://mathforum.org/kb/message.jspa?messageID=4996038&amp;tstart=0&quot;&gt;http://mathforum.org/kb/message.jspa?messageID=4996038&amp;tstart=0&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
This was 3 years ago.  Does Matlab 2009a has this GUI feature officially &lt;br&gt;
now?&lt;br&gt;
&lt;br&gt;
--Nasser</description>
    </item>
    <item>
      <pubDate>Tue, 14 Apr 2009 11:54:01 -0400</pubDate>
      <title>Re: Does Matlab need better GUI controls?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248979#642538</link>
      <author>Malcolm Lidierth</author>
      <description>To get more control over appearance, and much else, you can add java swing components using Yair Altman's uicomponent &lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/14583&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/14583&lt;/a&gt;&lt;br&gt;
or my own jcontrol &lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/15580&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/15580&lt;/a&gt;&lt;br&gt;
ML</description>
    </item>
    <item>
      <pubDate>Tue, 14 Apr 2009 15:00:03 -0400</pubDate>
      <title>Re: Does Matlab need better GUI controls?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248979#642610</link>
      <author>Dave Robinson</author>
      <description>&quot;John Ramshur&quot; &amp;lt;jramshur@gmail.com&amp;gt; wrote in message &amp;lt;gs10ct$rfm$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; With having experience programming in VB, VB.NET, and ASP.NET i've been disappointed in Matlab's GUI controls. Don't get me wrong Matlab is great for mathematical programming, but when you want to build a mathematical/scientific GUI it just seems to be behind others on the control styling. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'm in vista...I don't want a windows 98 looking GUI. Plus it wouldn't hurt to add some more types of controls and pull the uitab out of the &quot;undocumented&quot; section.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'm curious to hear others comment.&lt;br&gt;
&lt;br&gt;
Thinking aloud here, I haven't tried it, but wouldn't it be relatively straightforward to implement your GUI in say C# and have this communicate to your Matlab via a TCP/IP link on 127.0.0.1, so they co-existed in the same machine - Matlab handles sockets. The various buttons etc. could communicate to the Matlab via a series of strings or similar, and Matlab would interpret these with something I would imagine looked like a switch statement calling the functions that the Guide GUI would have called in the first place.&lt;br&gt;
&lt;br&gt;
Data coming from Matlab to the GUI would be handled the same way, but in reverse. True one would need to designe the actual communication protocol between the two applications rather carefully, but on face value, it looks do-able.&lt;br&gt;
&lt;br&gt;
This way you get the good looking graphic interface together with the number crunching might of Matlab,&lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;
&lt;br&gt;
Dave Robinson</description>
    </item>
    <item>
      <pubDate>Tue, 14 Apr 2009 17:34:01 -0400</pubDate>
      <title>Re: Does Matlab need better GUI controls?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248979#642661</link>
      <author>Matt Fig</author>
      <description>&quot;Nasser Abbasi&quot; &amp;lt;nma@12000.org&amp;gt; wrote in message &lt;br&gt;
&amp;gt; True. But real tabbed GUI menus is a big missing item in Matlab GUI.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Speaking of tabbed GUIs, I am curious how others have implemented the idea of tabs without having them.  This trivial GUI shows how I usually do it.  How do others &quot;fake it?&quot;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
function [] = panels()&lt;br&gt;
% Fake tabs are no tabs.&lt;br&gt;
SCR = get(0,'Screensize');&lt;br&gt;
fp = [SCR(3)/2-200 ,SCR(4)/2-200 , 400, 400];&lt;br&gt;
W = {'units','pixels','position'};&lt;br&gt;
hf = figure('Numbert','of','Menu','no',W{:},fp,'Name','Fun Quartics');&lt;br&gt;
S.ax = axes(W{:},[50 100 300 230]);&lt;br&gt;
S.pb1 = uicontrol(hf,'sty','push',W{:},[50 20 300 40],'str',...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Plot Random Quartic Polynomial','fonts',12);&lt;br&gt;
S.tg(1) = uicontrol(hf,'sty','tog',W{:},[50 355 60 40],...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'str','PLOT','val',1);&lt;br&gt;
S.tg(2) = uicontrol(hf,'sty','tog',W{:},[110 355 60 40],...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'str','FIT','val',0,'enable','off');&lt;br&gt;
W = {'style','edit',W{:}};                &lt;br&gt;
S.ed(5) = uicontrol(hf,W{:},[50 100 300 30]);&lt;br&gt;
S.ed(4) = uicontrol(hf,W{:},[50 140 300 30]);&lt;br&gt;
S.ed(3) = uicontrol(hf,W{:},[50 180 300 30]);&lt;br&gt;
S.ed(2) = uicontrol(hf,W{:},[50 220 300 30]);&lt;br&gt;
S.ed(1) = uicontrol(hf,W{:},[50 260 300 30]);&lt;br&gt;
set(S.pb1,'callback',{@pbcall,S})&lt;br&gt;
set(S.tg(:),{'callback'},{{@tgcall,S}})&lt;br&gt;
set(S.ed(:),'visible','off','fontsize',12,'fontweight','b')&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
function [] = pbcall(varargin)&lt;br&gt;
% Callback for pushbutton.&lt;br&gt;
S = varargin{3};&lt;br&gt;
x = -10:.1:10;&lt;br&gt;
plot(S.ax,x,polyval(-5 + ceil(rand(1,5)*7),x));&lt;br&gt;
set(S.tg(2),'enable','on');&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
function [] = tgcall(varargin)&lt;br&gt;
% Callback for togglebutton.&lt;br&gt;
S = varargin{3};&lt;br&gt;
stat = get(S.tg(:),'val');&lt;br&gt;
&lt;br&gt;
if ~all([stat{:}])&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(varargin{1},'val',1);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
L = get(S.ax,'children');&lt;br&gt;
&lt;br&gt;
switch varargin{1}&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case S.tg(1)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set([S.ax,S.pb1,L],{'visible'},{'on'})&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(S.ed(:),{'visible'},{'off'})&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(S.tg(2),'val',0)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case S.tg(2)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;STR = 'The x^0 coefficient is:  ';&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(S.tg(1),'val',0)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set([S.ax,S.pb1,L],{'visible'},{'off'})&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(S.ed(:),{'visible'},{'on'})&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;p = round(polyfit(get(L,'xdata'),get(L,'ydata'),4));&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for ii = 0:4&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;STR(7) = num2str(ii);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(S.ed(5-ii),'str',[STR,num2str(p(5-ii))])&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
end</description>
    </item>
    <item>
      <pubDate>Tue, 14 Apr 2009 18:38:01 -0400</pubDate>
      <title>Re: Does Matlab need better GUI controls?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248979#642691</link>
      <author>matt dash</author>
      <description>On original topic: The only thing I really wish they had was a better slider, and that's the only uicontrol I routinely replace with a JSlider. Scrollbars ~= sliders! If you're using vista the components should show up using the vista look and feel, unless you change the backgroundcolor property, then you'll get the old xp controls. I occasionally use other swing components when I want to do something fancy, like add an icon to a button. &lt;br&gt;
&lt;br&gt;
On making tabs: I wrote a small program to spit out x/y coordinates for a specified number of tabs with the specified tab &quot;on top&quot;. I make an axes and literally draw the tabs with a line object, and use text() to fill in the names. The buttondownfcn's for the text objects load the appropriate tab uicontrols (deleting the old ones) and also recalculate the tab coordinates to make that tab be on top. It doesnt have the nice shaded borders of a real tabpane, but it is clean and effective and looks acceptable with any look and feel.  </description>
    </item>
    <item>
      <pubDate>Tue, 14 Apr 2009 20:38:01 -0400</pubDate>
      <title>Re: Does Matlab need better GUI controls?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248979#642710</link>
      <author>Budias Aao</author>
      <description>&quot;John Ramshur&quot; &amp;lt;jramshur@gmail.com&amp;gt; wrote in message &amp;lt;gs10ct$rfm$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; With having experience programming in VB, VB.NET, and ASP.NET i've been disappointed in Matlab's GUI controls. Don't get me wrong Matlab is great for mathematical programming, but when you want to build a mathematical/scientific GUI it just seems to be behind others on the control styling. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'm in vista...I don't want a windows 98 looking GUI. Plus it wouldn't hurt to add some more types of controls and pull the uitab out of the &quot;undocumented&quot; section.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'm curious to hear others comment.&lt;br&gt;
&lt;br&gt;
IMO Matlab needs a whole new handle graphics system. The current one, sorry but that's what feel, just sucks.&lt;br&gt;
I don't know any graphics software so bad. If we feed it a somewhat large data it stalls. The memory usage is unbelievable. Default figure settings are pathetic with an enormous space wasting.</description>
    </item>
    <item>
      <pubDate>Wed, 15 Apr 2009 02:02:58 -0400</pubDate>
      <title>Re: Does Matlab need better GUI controls?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248979#642754</link>
      <author>per isakson</author>
      <description>&quot;John Ramshur&quot; &amp;lt;jramshur@gmail.com&amp;gt; wrote in message &amp;lt;gs10ct$rfm$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; With having experience programming in VB, VB.NET, and ASP.NET i've been disappointed in Matlab's GUI controls. Don't get me wrong Matlab is great for mathematical programming, but when you want to build a mathematical/scientific GUI it just seems to be behind others on the control styling. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'm in vista...I don't want a windows 98 looking GUI. Plus it wouldn't hurt to add some more types of controls and pull the uitab out of the &quot;undocumented&quot; section.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'm curious to hear others comment.&lt;br&gt;
&lt;br&gt;
&quot;Windows 98 looking GUI&quot; fits me. It helps me ignore visual appearance. &lt;br&gt;
&lt;br&gt;
However, I miss a number of controls that were taken for granted at the time of Windows 98. How come it take years from the first appearance of new controls until they become mature enough to be documented (e.g. uitable, uitab, uitree)? &lt;br&gt;
&lt;br&gt;
/ per&lt;br&gt;
&amp;nbsp;</description>
    </item>
    <item>
      <pubDate>Mon, 25 May 2009 14:26:02 -0400</pubDate>
      <title>Re: Does Matlab need better GUI controls?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248979#652239</link>
      <author>Richard de Garis</author>
      <description>&quot;Budias Aao&quot; &amp;lt;budiao@hotmail.com&amp;gt; wrote in message &amp;lt;gs2s79$jn4$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;John Ramshur&quot; &amp;lt;jramshur@gmail.com&amp;gt; wrote in message &amp;lt;gs10ct$rfm$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; With having experience programming in VB, VB.NET, and ASP.NET i've been disappointed in Matlab's GUI controls. Don't get me wrong Matlab is great for mathematical programming, but when you want to build a mathematical/scientific GUI it just seems to be behind others on the control styling. &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I'm in vista...I don't want a windows 98 looking GUI. Plus it wouldn't hurt to add some more types of controls and pull the uitab out of the &quot;undocumented&quot; section.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I'm curious to hear others comment.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; IMO Matlab needs a whole new handle graphics system. The current one, sorry but that's what feel, just sucks.&lt;br&gt;
&amp;gt; I don't know any graphics software so bad. If we feed it a somewhat large data it stalls. The memory usage is unbelievable. Default figure settings are pathetic with an enormous space wasting.&lt;br&gt;
&lt;br&gt;
In contrast to many of the folks here, I do not have much application development experience; however, it does appear to me that the GUI user experience is rather limited compared to some of the rich applications that the general public now get enjoy and even consider to be standard fare - for example Adobe's Lightroom has tabbed panels and sliding panels, as well as drag and drop functionality within the GUI.&lt;br&gt;
&lt;br&gt;
Another area that overlaps this topic is printing; if one has multiple tabs, is it possible to individually print the contents of each tab?  Actually, it should not only be possible, but a relatively easy process for the user to publish a page-layout through the GUI.&lt;br&gt;
&lt;br&gt;
Overall I am finding MATLAB to be an excellent development environment on the computational side of an application, but a little weak on the tool-set for GUIs and printing.&lt;br&gt;
&lt;br&gt;
Here's hoping the good folks at MathWorks can address everyone's issues here in near-future releases.</description>
    </item>
    <item>
      <pubDate>Mon, 25 May 2009 19:30:04 -0400</pubDate>
      <title>Re: Does Matlab need better GUI controls?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248979#652304</link>
      <author>Pekka Kumpulainen</author>
      <description>&quot;Budias Aao&quot; &amp;lt;budiao@hotmail.com&amp;gt; wrote in message &amp;lt;gs2s79$jn4$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;John Ramshur&quot; &amp;lt;jramshur@gmail.com&amp;gt; wrote in message &amp;lt;gs10ct$rfm$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
&amp;gt; IMO Matlab needs a whole new handle graphics system. The current one, sorry but that's what feel, just sucks.&lt;br&gt;
&lt;br&gt;
They are building a completely new graphics system. The current one has been stretched pretty much to its limits.&lt;br&gt;
But it will not be ready in 2010 releases yet. That's what I was told in TMW user conference. Let's hope they get all the right things in and no bad ones ;-)&lt;br&gt;
Maybe it is a time to send the wish lists in again.</description>
    </item>
  </channel>
</rss>

