[GUI] How do I create a Push Button like "File", that allows me to get more Push Button like "Open", "Save", "Save as", and "Exit"?

1 回表示 (過去 30 日間)
Hello I'm trying to create a guide for a future App that I'm developing, on this GUI I want to have an interface just like the matlab one, with File, App, View, Publish, etc. (Or like the Word one, Open file, save, save as,exit, etc).
So as the first step I want to have a way of clicking the push button "File", when I do this I get another window, with several push buttons like for exemple, "Open"(this one will allow me to open any file from my computer, I already know how to do it), other with Save option(that will allow me to save the changes I made to the file), and other like exit(that will just close the file window).
The problem is I was only able to create the file button and when I click it, it lets me open the file I want, but thats not what I'm looking for, I want to click File, and then get a Open option, any help?

採用された回答

Marc Jakobi
Marc Jakobi 2016 年 10 月 9 日
This link might help you.
  2 件のコメント
Adriano Morais
Adriano Morais 2016 年 10 月 9 日
Thank you so much, thats it! I was looking for this ^^
Marc Jakobi
Marc Jakobi 2016 年 10 月 9 日
No problem. But I would recommend you look into dpb's answer, too. You are a lot more flexible if you create GUIs without GUIDE.

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

その他の回答 (1 件)

dpb
dpb 2016 年 10 月 9 日
Use uimenu instead of pushbuttons...

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by