Is it posible to add some sort of listbox/button that adds a figure in the program?

3 ビュー (過去 30 日間)
Yogesh Chetwani
Yogesh Chetwani 2017 年 10 月 13 日
回答済み: Image Analyst 2017 年 10 月 13 日
Hi,
I wanna know if it's possible to create a button or listbox or any other component that let you create a figure through app design in the app itself?
I want a program where you need to introduce some inputs, but depending on your business you'll need to introduce from 2 up to 10 values. I can add 10 figures and let the rest be blank spaces if they only need 2 or 3 of them, but I wanna know if there is a better way to deal with this.
Thank you very much.
  2 件のコメント
Jan
Jan 2017 年 10 月 13 日
The question is unclear. A button or a listbox or any other component. Please narrow this down. I do not understand: "create a figure through app design in the app itself".
What is "introduce some inputs" exactly? What is the "rest", which is left blank? Actually it sounds like you are looking for a simple listdlg.
Yogesh Chetwani
Yogesh Chetwani 2017 年 10 月 13 日
Ok. here is an example...
Imagine that instead 3 numbers u want to sum 10 or u only want to sum 2. Is there anyway to hide or show more fields(thats what I called figures)?
Thanks

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

回答 (2 件)

Stephen
Stephen 2017 年 10 月 13 日
Rather than have the code "create" the additional boxes, you'd probably be better off building a GUI with all 10 of the input boxes you want and then setting the 'Visible' property of a number of the boxes to 'off'. Then program a popup to control the number of visible boxes per user input. Your solve button would then access the setting of the popup to determine which boxes have values that need to be added.
  1 件のコメント
Yogesh Chetwani
Yogesh Chetwani 2017 年 10 月 13 日
I think that should do, problem is I got no idea how to do it :(

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


Image Analyst
Image Analyst 2017 年 10 月 13 日
Try MAGIC. It's a good framework to start with.
This GUI will help the novice user get up to speed very quickly on using GUI-based applications. Everything is laid out in a very simple Step 1, Step 2, Step 3, etc. layout. It is a very good starting point for a typical image analysis application. This application uses GUIDE to do the user interface design, and has most of the basic controls such as buttons, listboxes, checkboxes, radio buttons, scrollbars, etc. It allows the user to select a folder of images, select one or more images and display them, to select a series of options, and to individually or batch process one or more images. The user can.....etc.

カテゴリ

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