delete "watermark" automatically created by tabpanel constructor v.2.8.1?

4 次查看(过去 30 天)
I have used tabpanel constructor v.2.8.1 in matlab 7.8.0 (R2009a) to create a GUI with several tabs. In one of the tabs I have some axes. After I wrote in the axes property inspector their tag and the axes_CreateFcn, it automatically include, when I closed that tab's GUIDE, a copy of those axes in the middle of all tabs within the GUI , as if it was a watermark. If the editor for each tab is opened, that watermark/axes doesn't appear (so I can't delete it). But running the GUI it does. In fact, as I have a function to change the image displayed in the axes, the "watermark" changes when that function is called. I have managed to delete it when the GUI is run including in the code "delete(gca)", but it continues appearing when opening tabpanel.
I know it's quite strange but it happend twice already. Any ideas to remove it from tabpanel? Thanks.

回答(1 个)

Walter Roberson
Walter Roberson 2013-3-6
GUIDE is not written to be able to handle tabbed panels. GUIDE is written with the expectation that everything you have created on a figure is non-overlapping and that if something is not currently visible it is only because its Visiblity was set 'off', not because something overlays it.
  2 个评论
Cristina
Cristina 2013-3-7
yes I know, that's what I used tabpanel constructor, because I didn't need to write the whole code. I wanted to know if there is some way of fix that problem. If you mean that there's no solution, that's also an answer.
Walter Roberson
Walter Roberson 2013-3-8
If you rewrite the GUIDE generated code sufficiently, of course it can be done. My experiences with GUIDE convinced me it was easier to rewrite without GUIDE than to fix up GUIDE code afterwards. But that's my opinion.
I do not have enough patience with GUIDE to go through to debug an issue like what you have seen.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by