MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Instrukcja Użytkownika Strona 203

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 330
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 202
Examples: Programming GUI Components
8-31
default). From the Layout Editor select Tools -> GUI Options -> Command
Line Accessibility: Callback
. See “Command-Line Accessibility” on page 5-10
for more information about how this option works.
ActiveX Control
This example programs a sample ActiveX control Mwsamp Control. It first
enables a user to change the radius of a circle by clicking on the circle. It then
programs a slider on the GUI to do the same thing.
“Programming an ActiveX Control” on page 8-31
“Programming a User Interface Control to Update an ActiveX Control” on
page 8-34
This topic also discusses:
“Viewing the Methods for an ActiveX Control” on page 8-35
“Saving a GUI that Contains an ActiveX Control” on page 8-36
“Compiling a GUI that Contains an ActiveX Control” on page 8-37
Note See MATLAB COM Client Support in the online MATLAB
documentation to learn more about ActiveX controls.
Programming an ActiveX Control
The sample ActiveX control Mwsamp Control contains a circle in the middle
of a square
. This example programs the control to change the circle radius
when the user clicks the circle, and to update the label to display the new
radius.
1 Add the sample ActiveX control Mwsamp to your GUI and resize it to
approximately the size of the square shown in the preview pane. The
following figure shows the ActiveX control as it appears in the Layout
Editor.
If you need help adding the component, see “Adding Components to the
Layout Area” on page 6-18.
Przeglądanie stron 202
1 2 ... 198 199 200 201 202 203 204 205 206 207 208 ... 329 330

Komentarze do niniejszej Instrukcji

Brak uwag