Creating Graphical User Interfaces - The MathWorks - #351

/ 520


catalogue search
P. 351
P. 352
P. 353
P. 354
P. 355
P. 356
P. 357
P. 358
P. 359
P. 360
P. 361
P. 362
P. 363
P. 364
P. 365
P. 366
P. 367
P. 368
P. 369
P. 370
P. 371
P. 372
P. 373
P. 374
P. 375
P. 376
P. 377
P. 378
P. 379
P. 380
P. 381
P. 382
P. 383
P. 384
P. 385
P. 386
P. 387
P. 388
P. 389
P. 390
P. 391
P. 392
P. 393
P. 394
P. 395
P. 396
P. 397
P. 398
P. 399
P. 400


See other catalogues for The MathWorks

Text version of the page
Adding Components to the GUI
Component
Function
Description
"Static Text" on page 11-26
uicontrol
Static text controls display lines of text. Static text is typically used to label other controls, provide directions to the user, or indicate values associated with a slider. Users cannot change static text interactively.
"Toggle Button" on page 11-27
uicontrol
Toggle buttons generate an action and indicate whether they are turned on or off. When you click a toggle button, it appears depressed, showing that it is on. When you release the mouse button, the toggle button remains depressed until you click it a second time. When you do so, the button returns to the raised state, showingthatitisoff. Useabutton group to manage mutually exclusive radio buttons.
Components are sometimes referred to by the name of the function used to create them. For example, a push button is created using the uicontrol function, and it is sometimes referred to as a uicontrol. A panel is created using the uipanel function and may be referred to as a uipanel.
Adding User Interface Controls
Use the uicontrol function to create user interface controls. These include push buttons, toggle buttons, sliders, radio buttons, edit text controls, static text controls, pop-up menus, check boxes, and list boxes.
Note See "Available Components" on page 11-10 for descriptions of these components. See "Programming User Interface Controls" on page 12-15 for basic examples of programming these components.
11-13

pageCatalog pdf di En 2012-06-22-01