App Designer - Button group
16 ビュー (過去 30 日間)
古いコメントを表示
Hello, I am working on a GUI using two buttons where the enhancement operations perfromed on an image can be changed. Once I select the required operation; I have an another drop down gives options in relation to the first selection. My questions is
- It looks like by default the first button is always pressed. So when am running if condition to check whether the first button is selected or not; some how the code within the if not executing; it is only executing when the value is changed (means when option changed from one radio button to the other and vice versa)
How can i access the initial value or default value of radio button selection.
Thanks.
0 件のコメント
回答 (2 件)
Cris LaPierre
2020 年 9 月 17 日
8 件のコメント
Cris LaPierre
2020 年 9 月 22 日
編集済み: Cris LaPierre
2020 年 9 月 22 日
What is your trigger? Do you want the app to open with the linear stretching result already displayed? If so, place the following at the bottom of your startupFcn callback.
MethodButtonGroupSelectionChanged(app, app.MethodButtonGroup)
Mario Malic
2020 年 9 月 22 日
編集済み: Mario Malic
2020 年 9 月 22 日
- Create property that takes Method and Contrast level values.
- Create a callback for button group (method and image enhancement operation) - see this property (app.ImageEnhancementOperationButtonGroup.SelectedObject.Text)
- Create a callback that sends contrast dropdown value to property.
- Initialise starting values in startupFcn, for each component.
You read your image twice, save it in a property.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Dialog Boxes についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!