Clear Filters
Clear Filters

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

3 views (last 30 days)
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 Comments
Jan
Jan on 13 Oct 2017
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 on 13 Oct 2017
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

Sign in to comment.

Answers (2)

Stephen
Stephen on 13 Oct 2017
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.

Image Analyst
Image Analyst on 13 Oct 2017
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.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!