MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Specifications Page 43

  • Download
  • Add to my manuals
  • Print
  • Page
    / 180
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 42
User Interface Controls
1-35
When not open, a popup menu displays the current choice, which is determined
by the index contained in the
Value property. The first item in the list has an
index of 1.
Popup menus are useful when you want to provide users with a number of
mutually exclusive choices, but do not want to take up the amount of space that
a series of radio buttons requires.
Programming the Popup Menu
You can program the popup menu callback to work by checking only the index
of the item selected (contained in the
Value property) or you can obtain the
actual string contained in the selected item.
This callback checks the index of the selected item and uses a switch statement
to take action based on the value. If the contents of the popup menu is fixed,
then you can use this approach.
function varargout = popupmenu1_Callback(h,eventdata,handles,varargin)
val = get(h,'Value');
switch val
case 1
% The user selected the first item
case 2
% The user selected the second item
% etc.
This callback obtains the actual string selected in the popup menu. It uses the
value to index into the list of strings. This approach may be useful if your
program dynamically loads the contents of the popup menu based on user
action and you need to obtain the selected string. Note that it is necessary to
convert the value returned by the
String property from a cell array to a string.
function varargout = popupmenu1_Callback(h,eventdata,handles,varargin)
val = get(h,'Value');
string_list = get(h,'String');
selected_string = string_list{val}; % convert from cell array to string
% etc.
Enabling or Disabling Controls
You can control whether a control responds to mouse button clicks by setting
the
Enable property. Controls have three states:
Page view 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 179 180

Comments to this Manuals

No comments

Energizer CAPW2BODE manuali

Manuali dei proprietari e guide per l'utente per Torce Energizer CAPW2BODE.
We fornisce 1 manuali pdf Energizer CAPW2BODE per scaricare gratuitamente in base al tipo di documento: Scheda Tecnica


Energizer CAPW2BODE Scheda Tecnica (1 pagine)


Marchio: Energizer | Categoria: Flashlights | Dimensione: 0.07 MB |

 




Più prodotti e manuali per Torce Energizer

Modelli Tipo di Documento
SOLRE35BP Scheda Tecnica   Energizer Solar Folding Lantern, 1 pagine
HD33A2ODE Scheda Tecnica   Energizer HD33A2ODE flashlight, 1 pagine
SOLCKCCBP Scheda Tecnica   Energizer Solar Carabiner Crank Light, 1 pagine
CAPR22ODE Scheda Tecnica   Energizer CAPR22ODE flashlight, 1 pagine
ECAP1AAE Scheda Tecnica   Energizer ECAP1AAE flashlight, 1 pagine
CAPG2BODE Scheda Tecnica   Energizer CAPG2BODE flashlight, 1 pagine
631637 Scheda Tecnica   Energizer Pro-Headlight 4 LED, 1 pagine
MILMOS11L Scheda Tecnica   Energizer MILMOS11L flashlight, 1 pagine
FL452WRH Scheda Tecnica   Energizer FL452WRH flashlight, 1 pagine
PLED34AE Scheda Tecnica    Energizer PLED34AE flashlight, 1 pagine
ELMCL11L Scheda Tecnica   Energizer ELMCL11L flashlight, 1 pagine
HD3LMS32E Scheda Tecnica   Energizer 3 LED Micro Sport Headlight, 1 pagine
3151LS Scheda Tecnica   Energizer 3151LS flashlight, 1 pagine
RCL1NM2WR Scheda Tecnica   Energizer RCL1NM2WR flashlight, 1 pagine
KCC2BODBP Scheda Tecnica   Energizer KCC2BODBP flashlight, 1 pagine
WRCLD41E Scheda Tecnica   Energizer WRCLD41E flashlight, 1 pagine
631638 Scheda Tecnica   Energizer Pro-Headlight 7 LED, 1 pagine
625702 Scheda Tecnica   Energizer Hi-Tech LED 2 in 1, 1 pagine
625701 Scheda Tecnica   Energizer Penlight, 1 pagine
632026 Scheda Tecnica   Energizer ENATEX, 1 pagine