Labview and Matlab for PT

Just a place to discuss with Matlab and Labview

ad

[Transcripttion] 35 Complete GUI Examples

This article, 35 Complete GUI Examples, gives examples about GUI that I found today. It contains several questions that many people usually ask and also attaches the example codes. It is very useful reference when designing a GUI program.

Here is the description of this article:

The questions/files are written in approximate order of complexity, so intermediate users may want to skip the first several files. 
The questions answered include:

1. How do I manipulate the strings in a uicontrol? 
2. How do make a uicontrol invisible/visible?
 
3. How do I make a multi-line editbox?
 
4. How can I let the user of my GUI know his actions are futile (or producing no results)?
 
5. How can I tell which uicontrol is selected?
 
6. How can I tell how many times a uicontrol has been activated?
 
7. How do I tell which button in a buttongroup is selected?
 
8. How do I let the user know a process is running in the background?
 
9. How do I control the mouse pointer with a GUI?
 
10. How can I access the value (current position) of a slider?
 
11. How can I use different colored strings in a listbox?
 
12. What is the difference between 'listboxtop' and 'value' in a listbox?
 
13. How can I make text that can be copied but not changed?
 
14. How do I allow the user of my GUI to set the range of a slider?
 
15. How do I use the buttondownfcn on an axes object?
 
16. How do I make a callback talk to another callback?
 
17. How can I get the string from a popup or listbox?
 
18. How can I set the string in a popup or listbox?
 
19. How can I add to the string in a popup or listbox?
 
20. How do I tell which figure was current before my callback executed?
 
21. How do I get data from another GUI?
 
22. How do I make a GUI to open image files only?
 
23. How can I make popup choices mutually exclusive?
 
24. How can I show the current pointer location in axes coordinates?
 
25. How can I use uicontextmenus?
 
26. How do I make my GUI control an axes in another figure?
 
27. What are callback strings?
 
28. How can I make it so that when one of the figures closes, they all close?
 
29. How do I make several uicontrols interact in a more complicated GUI?
 
30. How do I get data from a GUI to the base workspace?
 
31. How do I make toggle buttons act like tabbed-panels?
 
32. How can I make a password editbox that has the ***** symbols?
 
33. How can I use nested function as callbacks?
 
34. How can I use uiwait in a GUI?
 
35. How do I use JAVA in my GUI?
 
36. How do I force the figure to maintain focus between uicontrol activations?
 
37. How do I save an axes as an image?
 
38. How can I make a simple drawing program?
 
39. How can I save the state of a system of GUIs to use later?

I am open to hearing any suggestion as to other questions which could be covered in the collection. Such suggestions need not be basic. Please read the pdf file prior to use. Also the contents.m file contains brief descriptions of each GUI.
Please email me if an error is found, either in the documentation or coding. Thanks.

0 意見: