设为首页收藏本站|繁體中文 快速切换版块

 找回密码
 立即加入
搜索
查看: 862|回复: 0

GUI Example(41 Complete GUI,CC)

[复制链接]

该用户从未签到

尚未签到

发表于 2013-4-5 09:52:35 | 显示全部楼层 |阅读模式
软件程序
软件/程序名称: GUI Example
软件/程序大小: 161k
软件/程序语言: 英语
运行平台: Windows XP/2003/Vista 
功能简介: This is a collection of GUIs meant to serve either to answer specific questions about writing GUIs or as a teaching tool to aid in learning how to write MATLAB GUIs without GUIDE. Many of these are inspired directly from the newsgroup.
The questions/files are written in approximate order of complexity, so intermediate users may want to skip the first several files.
授权方式: 免费版
研究/处理: 原版

马上加入,结交更多好友,共享更多资料,让你轻松玩转电力研学社区!

您需要 登录 才可以下载或查看,没有账号?立即加入

×
GUI41.rar (105.3 KB, 下载次数: 1)
; H. J0 y- i  j9 \& T0 I/ C& aThanks for the original code provider.Almost cover all processes of creating a ideal GUI.
5 i2 G4 l+ k4 Z8 iHere, I share it to enhance together.
! L4 R3 U; o' {; l7 oThis file was selected as MATLAB Central Pick of the Week
2 C9 O8 b/ d4 r$ [; MThe questions answered include:4 g- x( c( C; }' J* x
1.How do I manipulate the strings in a uicontrol? GUI_1, 2, 4, 5, 13, 14, 15, 20, 21, 22, 37
' {# ^! i+ ^8 g# ^, u% p' {2.How do make a uicontrol invisible/visible? GUI_3, 35 (See also GUI_10 for images)
# _% f6 R& a- `# c3.How do I make a multi-line edit box? GUI_4
9 W% z5 P# e6 c. T: |4.How can I initialize an editbox so that the cursor is blinking at startup?  GUI_4, 24, 37
7 o1 Q3 P3 P0 @4 b$ t7 P4 ~- R8 w5.How can I let the user of my GUI know his actions are futile (or producing no results)? GUI_5 1 D+ r* O. I+ ~! A
6.How can I tell which uicontrol is selected e.g., radiobuttons? GUI_6, 8
3 b- X4 x0 ^6 g" L7.How do I tell how many times a uicontrol has been activated? GUI_7, 19, 28, 32, 33
$ z1 L% ?6 \- Q( H" p" n- k9 g8.How do I tell which button in a buttongroup is selected? GUI_8
. e* X2 Z- y+ l: T. B2 I7 C) N, ~9 P9.How do I let the user know a process is running in the background? GUI_9
9 ^6 U+ S" O* T4 E$ d/ X; n10.How can I set an image visible/invisible? GUI_10
( h+ C) I" |& W% \# N* w11.How can I use a GUI to exit a FOR loop? GUI_11
$ L; R; Z+ M3 N+ s3 Q; ~0 X- L12.How can I control the mouse pointer with a GUI? GUI_12   T; c) `+ Q, B2 m- L
13.How do I access the value (current position) of a slider? GUI_13, 16
9 {- i/ E; I8 `. I- E# r14.How do I use different colored strings in a listbox? GUI_14 ; t- w8 ]" ~" l
15.What is the difference between 'listboxtop' and 'value' in a listbox? GUI_14
, N  p1 o# G4 \% U1 s) h16.How do I make text that can be copied but not changed? GUI_15 ! r3 y2 E) o0 B2 t0 _. A  p0 h
17.How can I allow the user of my GUI to set the range of a slider? GUI_16
1 r- E) J, q8 s2 s8 n( Y18.How can I display a digital clock in my GUI? GUI_17
2 m0 K$ D  H0 y3 v# c9 u, F& d3 x$ u% Y19.How can I use a timer in a GUI? GUI_17 7 p4 N$ R# L: c* g
20.How do I use the buttondownfcn on an axes object? GUI_18, 28 ( h9 m0 y; C% l0 W/ j: ?
21.How do I make a callback talk to another callback? GUI_19
3 D, C& K: `& R22.How can I get the string from a popup or listbox? GUI_14, 20, 21, 22, 31, 32, 33
7 {) ~$ [$ r8 e& g23.How can I set the string in a popup or listbox? GUI_21, 22
+ v3 I; X+ n% @8 }  S24.How can I add to the string in a popup or listbox? GUI_22
% G/ Z% j7 ?+ K$ C+ i: G25.How do I tell which figure/axes was current before my callback executed? GUI_23 % f0 o) J2 M6 _' D' \8 `
26.How do I get data from another GUI? GUI_24
- ?# B- X* H" z  r27.How do I make a GUI to open image files only? GUI_25 8 d3 Y& P/ x! t/ U* C0 D5 G8 O. {2 O
28.How can I make popup choices mutually exclusive? GUI_26 1 K" Z# Q) [, {+ w  h
29.How can I show the current pointer location in axes coordinates? GUI_27
8 m7 O  r# D7 y8 z: Z3 T, T30.How can I use uicontextmenus? GUI_28, 33, 39 5 p1 `- e8 Y8 }8 C& e. {
31.How do I make my GUI control an axes in another figure? GUI_29, 30 - S" M9 x8 q( @. E& C$ v! ~0 z
32.What are callback strings? GUI_30
& _& q( X9 |- {# i33.How can I make it so that when one of the figures closes, they all close? GUI_24, 29, 30, 41   Y1 W- D$ R8 U: P6 v
34.How do I make several uicontrols interact in a more complicated GUI? GUI_31, 32, 33, 41
  u, N7 S: u& l2 k" G7 L35.How do I get data from a GUI to the base workspace? GUI_25, 32, 33, 36 1 j0 b) s' M4 z$ q( U: L
36.How can I use a GUI to take a screenshot of my desktop? GUI_34 $ T" {" u$ J+ w& ~. o
37.How do I make toggle buttons act like tabbed-panels? GUI_35
9 s5 G5 N7 Q" V8 C38.How do I make a custom dialog box which returns a string to the base workspace? GUI_36 % P% X1 D# O; n  K/ H
39.How can I make a password editbox that has the ***** symbols? GUI_37
( F5 _" f" k! A5 {40.How can I use nested function as callbacks? GUI_11, 17, 34, 36, 37, 39, 40, 41. ; p" O  W0 _) b! h
41.How can I use uiwait in a GUI? GUI_11, 34, 36, 37
; T) R6 R; d5 |7 W) J42.How do I use JAVA in my GUI? GUI_38
6 E" q! X# @# _6 W43.How do I force the figure to maintain focus between uicontrol activations? GUI_38 " y) z2 b0 k. U3 d4 s) T
44.How do I save an axes as an image? GUI_39 ) {6 i5 F! H- ^: U; }& \  h* }
45.How can I make a simple drawing program? GUI_39 ) E6 F6 |& C* V1 k* F+ f
46.How can I set a button's background to match an image? GUI_40
& s/ a" U9 Y. m  J. A* V47.How can I save the state of a system of GUIs to use later? GUI_41( e% c0 A$ Y& A: g6 ?; q% h/ d
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.  B" ^5 C8 E4 H1 ^: `
Please email me if an error is found, either in the documentation or coding. Thanks!$ U! W7 D' S6 o$ q3 ?- p" F0 ~
Acknowledgements
  A0 c& E  Q" x* a. m$ s* w2 p5 SThis submission has inspired the following:5 o) F. h1 f% F3 o
Matlab to Google Spreadsheets, StackSlider, Virtual Painting
MATLAB releaseMATLAB 7.5 (R2007b)
"真诚赞赏,手留余香"
还没有人打赏,支持一下
楼主热帖
帖文化:【文明发帖 和谐互动】 社区精神:【创新、交流、互助、共享】
您需要登录后才可以回帖 登录 | 立即加入

本版积分规则

招聘斑竹

小黑屋|手机版|APP下载(beta)|Archiver|电力研学网 ( 赣ICP备12000811号-1|赣公网安备36040302000210号 )|网站地图

GMT+8, 2024-4-25 03:51

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表