<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Modifying default toolbar/menubar actions	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=modifying-default-toolbar-menubar-actions</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Mon, 30 Apr 2018 20:15:22 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: Akshay Kumar		</title>
		<link>https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-424436</link>

		<dc:creator><![CDATA[Akshay Kumar]]></dc:creator>
		<pubDate>Mon, 30 Apr 2018 20:15:22 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1430#comment-424436</guid>

					<description><![CDATA[Hi, 

My problem is: after clicking on brushing tool, I select data by dragging over the data-points. Now, when I right click it gives me a 5 to 6 options: remove data, replace with , delete create variables etc. Can I customize these options and create callbacks for these options? because I don&#039;t want all these options in my objective.

with regards,
Akshay Kumar]]></description>
			<content:encoded><![CDATA[<p>Hi, </p>
<p>My problem is: after clicking on brushing tool, I select data by dragging over the data-points. Now, when I right click it gives me a 5 to 6 options: remove data, replace with , delete create variables etc. Can I customize these options and create callbacks for these options? because I don&#8217;t want all these options in my objective.</p>
<p>with regards,<br />
Akshay Kumar</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Another couple of Matlab bugs and workarounds &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-340864</link>

		<dc:creator><![CDATA[Another couple of Matlab bugs and workarounds &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Wed, 10 Dec 2014 22:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1430#comment-340864</guid>

					<description><![CDATA[[...] image to a Matlab variable (2D RGB image), an image file, system clipboard, or the printer. We can easily modify the &#060;Print&#062; toolbar button and menu item to use this utility rather than the builtin print function:Matlab&#039;s default toolbar Print [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] image to a Matlab variable (2D RGB image), an image file, system clipboard, or the printer. We can easily modify the &lt;Print&gt; toolbar button and menu item to use this utility rather than the builtin print function:Matlab&#039;s default toolbar Print [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Customizing figure toolbar background &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-173133</link>

		<dc:creator><![CDATA[Customizing figure toolbar background &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Thu, 14 Mar 2013 15:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1430#comment-173133</guid>

					<description><![CDATA[[...] I need to manually remove several unuseful toolbar controls. I do this by directly accessing the toolbar control handles [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] I need to manually remove several unuseful toolbar controls. I do this by directly accessing the toolbar control handles [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-52536</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 28 Jul 2011 19:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1430#comment-52536</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-52500&quot;&gt;klimmbimm&lt;/a&gt;.

@klimmbimm - adding simple buttons to the figure toolbar can be done using the &lt;i&gt;&lt;b&gt;uipushtool&lt;/b&gt;&lt;/i&gt; function]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-52500">klimmbimm</a>.</p>
<p>@klimmbimm &#8211; adding simple buttons to the figure toolbar can be done using the <i><b>uipushtool</b></i> function</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: klimmbimm		</title>
		<link>https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-52500</link>

		<dc:creator><![CDATA[klimmbimm]]></dc:creator>
		<pubDate>Thu, 28 Jul 2011 10:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1430#comment-52500</guid>

					<description><![CDATA[Is there a way to get a cut push button to my figure?]]></description>
			<content:encoded><![CDATA[<p>Is there a way to get a cut push button to my figure?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-49845</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 29 Jun 2011 21:49:13 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1430#comment-49845</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-49832&quot;&gt;Andi&lt;/a&gt;.

@Andi - Of course you can modify the main Matlab desktop toolbar, just like a figure toolbar. Here is one way to get a reference to the toolbar container, which is a standard &lt;code&gt;com.mathworks.mwswing.MJToolBar&lt;/code&gt; object:

&lt;pre lang=&#039;matlab&#039;&gt;
hMainFrame = com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame;
hToolbar = hMainFrame.getContentPane.getComponent(0).getComponent(0);
&lt;/pre&gt;

You may of need to adapt the code for docking etc., but this should be enough to get you started.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-49832">Andi</a>.</p>
<p>@Andi &#8211; Of course you can modify the main Matlab desktop toolbar, just like a figure toolbar. Here is one way to get a reference to the toolbar container, which is a standard <code>com.mathworks.mwswing.MJToolBar</code> object:</p>
<pre lang='matlab'>
hMainFrame = com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame;
hToolbar = hMainFrame.getContentPane.getComponent(0).getComponent(0);
</pre>
<p>You may of need to adapt the code for docking etc., but this should be enough to get you started.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andi		</title>
		<link>https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-49832</link>

		<dc:creator><![CDATA[Andi]]></dc:creator>
		<pubDate>Wed, 29 Jun 2011 17:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1430#comment-49832</guid>

					<description><![CDATA[Hello Yair,

Is there a way of performing these sort of modifications on the main Matlab toolbar rather than on figure toolbars. 

Thanks for your help]]></description>
			<content:encoded><![CDATA[<p>Hello Yair,</p>
<p>Is there a way of performing these sort of modifications on the main Matlab toolbar rather than on figure toolbars. </p>
<p>Thanks for your help</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-36896</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 16 Mar 2011 12:57:49 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1430#comment-36896</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-36801&quot;&gt;lux&lt;/a&gt;.

@lux - there is no official way to do this, but of course (as always) there&#039;s a back-door: you can simply add your code to the printdlg.m file. This will get executed whenever the user tries to print any figure.

In Matlab releases up to R2009b you can add your code to the built-in figureToolbarCreateFcn.m function. Unfortunately, this back-door was closed in R2010a onward...

You should also take a look at http://undocumentedmatlab.com/blog/customizing-print-setup/, which explains how to programmatically modify the default print setup.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-36801">lux</a>.</p>
<p>@lux &#8211; there is no official way to do this, but of course (as always) there&#8217;s a back-door: you can simply add your code to the printdlg.m file. This will get executed whenever the user tries to print any figure.</p>
<p>In Matlab releases up to R2009b you can add your code to the built-in figureToolbarCreateFcn.m function. Unfortunately, this back-door was closed in R2010a onward&#8230;</p>
<p>You should also take a look at <a href="http://undocumentedmatlab.com/blog/customizing-print-setup/" rel="ugc">http://undocumentedmatlab.com/blog/customizing-print-setup/</a>, which explains how to programmatically modify the default print setup.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: lux		</title>
		<link>https://undocumentedmatlab.com/articles/modifying-default-toolbar-menubar-actions#comment-36801</link>

		<dc:creator><![CDATA[lux]]></dc:creator>
		<pubDate>Tue, 15 Mar 2011 17:25:57 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1430#comment-36801</guid>

					<description><![CDATA[Hello Yair!
I would like to ask you in what way I can alter the Standard.PrintFigure properties so as to be valid for every figure window and not only for the current one(gcf).
Like getting assimilated into the default figure toolbar.
Thank you for your help.]]></description>
			<content:encoded><![CDATA[<p>Hello Yair!<br />
I would like to ask you in what way I can alter the Standard.PrintFigure properties so as to be valid for every figure window and not only for the current one(gcf).<br />
Like getting assimilated into the default figure toolbar.<br />
Thank you for your help.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
