MATLAB Answers

How can I identify push button in app designer?

22 ビュー (過去 30 日間)
sc
sc 2018 年 3 月 28 日
再開済み: sc 2018 年 5 月 12 日
Hi! I'm creating an user interface with App Designer, and I'd like to enable a button when another button is pressed, but I don't know how i can identify the button that is pressed.

  0 件のコメント

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

採用された回答

Elias Gule
Elias Gule 2018 年 3 月 28 日
Please follow the steps as outlined by the arrows in the attached picture. Basically, what you should do is
1) Select the Design View AppDesigner
2) Select the Component Whose Id You Want To Know
3) The highlighted text under the app.UIFIGUREin the Component Browser pane is the full ID of the selected component.
So if you selected a button whose text is "Select File" then in the Component Browser under app.UIFIGURE, the text app.SelectFile will be full id of the selected component.

  6 件のコメント

表示 3 件の古いコメント
Elias Gule
Elias Gule 2018 年 3 月 28 日
In the createComponents method of our code, append the following code.
app.Select_Local_Folder_Button.Enable = 'off'
Will disable the button.
sc
sc 2018 年 3 月 28 日
I put 'Current Folder' instead of 'Local Folder' and now it works!! Thank you so much!!!
Elias Gule
Elias Gule 2018 年 3 月 29 日
xie xie!

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

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by