フィルターのクリア

List box Value Changed

6 ビュー (過去 30 日間)
Nwasinachi
Nwasinachi 2022 年 11 月 22 日
コメント済み: Voss 2022 年 11 月 22 日
This exact function works for my 1st list box i turned off 'enable' and set a condition that forces a selection to be made from list box so the push button is enable, but that isnt working for the other pushbuttons. i have attached the code
function ListBox_3ValueChanged(app, event)
value = app.ListBox_3.Value;
if strcmp(app.ListBox.Value,'Female')|| strcmp(app.ListBox.Value,'Male')||strcmp(app.ListBox.Value,'Intersex')||strcmp(app.ListBox.Value,'Non-conforming')...
||strcmp(app.ListBox.Value,'Gender-fluid')||strcmp(app.ListBox.Value,'Genderqueer')||strcmp(app.ListBox.Value,'Transgender');
set(app.NEXTButton_2,'Visibility','on')
set(app.NEXTButton_2,'Enable','on');
end % simple loop that allows the push button to stay disabled until the person selects an option.
end
  4 件のコメント
Image Analyst
Image Analyst 2022 年 11 月 22 日
I can't even get it to display the tabs. When I run it, they're chopped off. Look:
You see the tabs in Design View but when you actually run it the top part of the figure is chopped off!
Nwasinachi
Nwasinachi 2022 年 11 月 22 日
編集済み: Nwasinachi 2022 年 11 月 22 日
I just made a modification it should run well now and resize decently
They are that way because of a resizing issue. App designer has a very complicated sizing criteria, so i am unable to use percentages to size the page and using pixels causes my app to lose pushbuttons (not visible on the screen when it is resized). i have been trying different codes to fix that issue but StartFcn makes the other functions non-functional so i had to remove that line of code.
You can still run the app. if you click on NEXT it should proceed to the next tab. If it isnt working please let me know.

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

採用された回答

Voss
Voss 2022 年 11 月 22 日
編集済み: Voss 2022 年 11 月 22 日
NEXTButton_2 has no Callback (i.e., no ButtonPushedFcn) assigned to it.
  11 件のコメント
Nwasinachi
Nwasinachi 2022 年 11 月 22 日
So the list boxes that i have posted in this thread are components of User Interface i am creating.
The user is supposed to make a selection as they go through each tab.
The struct array is there so i can collect those inputs(answers) which are either from the radio buttons or list boxes, because i will have to compute some statistical analysis later, but if i am unable to have the inputs saved for each user then this analysis is almost impossible to do.
Voss
Voss 2022 年 11 月 22 日

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by