How can you arrange two different push buttons with different functionality at the same location in a GUI?

I have a GUI window. Due to the space constraints, I have to insert two different push buttons with different functionality at the same location. The good thing is that they need not be visible at the same time.
How can I manipulate the callbacks and the property inspector so that both the push buttons can be used with their functionality?

 採用された回答

Titus Edelhofer
Titus Edelhofer 2014 年 6 月 24 日
Hi Ashish,
do you create your GUI with GUIDE? Then it's straight forward: just put them at the same location. If you want to change the properties of the one below the other, either use right click->Send to Back, so that the other gets visible and double click on this one.
Or use the object browser to navigate to the hidden one.
Titus

1 件のコメント

Ashish
Ashish 2014 年 6 月 24 日
Hi Titus,
I do use GUIDE. That was really easy! Thanks for the tip!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

質問済み:

2014 年 6 月 24 日

コメント済み:

2014 年 6 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by