Path: news.mathworks.com!not-for-mail
From: "vivek" <bhaskar.vivek@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: How do I copy object properties in GUIDE ?
Date: Tue, 6 Jan 2009 01:08:02 +0000 (UTC)
Organization: Caterpillar
Lines: 18
Message-ID: <gjuath$puv$1@fred.mathworks.com>
Reply-To: "vivek" <bhaskar.vivek@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1231204082 26591 172.30.248.37 (6 Jan 2009 01:08:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 6 Jan 2009 01:08:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1078271
Xref: news.mathworks.com comp.soft-sys.matlab:509942


Hello All !

I've been trying to do this all day but I cannot seem to find a solution.
Simply put, when I copy an object say a push button in GUIDE and then paste it somewhere else either in the same figure or a new figure, how can I get it to copy the properties of that object as well? 

Only the 'visual' properties get copied. Others such as 'tag' 'callback' etc (the important ones) do not.

This would be very helpful when you are copying one gui into say the 'tab' of another. It would be really nice not to have to change the tags and callback names for each object!

related : Why did Mathworks remove the "duplicate" function ?

Thanks a lot!