MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Podręcznik Użytkownika Strona 738

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 759
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 737
15 Examples of GUIs Created Programmatically
mOutputArgs{} = mIco nCData;
if nargout>0
[varargout{1:nargout}] = mOutputAr gs{:};
end
This code is the last that iconEditor executes before returning. It
executes only after clicking the OK or Cancel button triggers execution of
hOKButtonCallback or hCancelButtonCallback, which call uiresume to
resume execution.
Protect a GUI from Inadvertent Access
The pre pare Layout utility function protects the iconEditor from inadvertently
being altered from the command line by setting the
HandleVisibility
properties of all the components. Code in the initialization section of
iconEditor calls
prepareLayout with the handle of the main figure.
% Make changes needed for prop er look and feel and running on
% different platforms
prepareLayout(hMainFigure);
prepareLayout
first uses findall to retrieve the handles of all objects
contained in the figure. The list of retrieved handles includes the
colorPalette, which is embedded in the iconEditor, and its children.
The figure’s handle is passed to
prepareLayout as the input argument
topContainer.
allObjects = findall(topContainer) ;
prepareLayout
then sets the HandleVisibility properties of all those
objects that have one to
Callback.
% Make GUI objects available t o callbacks so that they cannot
% be changed accidentally by other MATLAB comm ands
set(allObjects(isprop(allObjects,'H andleVisibility')),...
'HandleVisibility','Callback');
Setting HandleVisib ility to C allb ack causes the GUI handles to be visible
from within callback routines or functions invoked by callback routines, but
not from within functions invoked from the command line. This ensures
that command-line users cannot inadvertently alter the GUI w hen it is the
current figure.
15-74
Przeglądanie stron 737
1 2 ... 733 734 735 736 737 738 739 740 741 742 743 ... 758 759

Komentarze do niniejszej Instrukcji

Brak uwag

Consolas manuales

Elija su marca Consolas para descargar manuales y guías de usuario

Lista de marcas para la categoría de manuales Consolas
Marcas Mejores modelos
DreamGEAR                               DGWII-1247 es DGDSI-1923 es DGWII-1036 DGPSPS-1801 es Otras categorias
Sony                               SCPH-50006 PlayStation 3 CECH-3008A 120-250GB Playstation 3 CECH-2101A SCPH-75006 Otras categorias
RocketFish                               RF-CH101 - Quick Setup Guide RF-GDS1128 - Quick Setup Guide RF-GXB1301 - Quick Setup Guide RF-LK101 - User Manual Otras categorias
Tritton                               AV8R FlightStick for PS3 R.A.T. TE Combat Rudder Pedals Pro Flight Mobile mouse Otras categorias
SPEEDLINK                               SL-4478-BK SCYLLA Wireless Console Gaming Headset SL-3410-SBK-01 ZONE Induction USB-Charging System SL-4443-IRD STRIKE FX Wireless Gamepad - Illuminat SL-4472-BK ARGOS Backheadset - Bluetooth - for PS3 Otras categorias
Techno Source                               LCD Video Game 31030 90660 Illuminated 3-in-1 Dominoes Spider-man 3 High-Rise Hysteria Otras categorias
Radica Games                               PRO RACER 2 RC72160US MONSTER TRUCK 74026 BIG SCREEN POKER N7314 N5454 Otras categorias
Snakebyte                               Wii Premium Remote Controller Wii Wireless Pack Premium HDMI Selector Xbox 360 Media Remote Control Manual Otras categorias
Defender                               Sharky Touch Adrenaline Mini LE Sharky 3D MX-15 Otras categorias
Fisher-Price                               SMART CYCLE EXTREME R2764 COLOR PIXTER G6512 SMART CYCLE EXTREME R2763 SMART CYCLE RACER T6356 Otras categorias
Saitek                               PS2700 P990 Cyborg Evo P2900 Otras categorias
Excalibur electronic                               336 BACKGAMMON 477ET-CS TurboGrip VR18 MADLIBS 398 Otras categorias
Microsoft                               Xbox 360 Elite Xbox Controller S X08-78482 Xbox 360 Xbox 360 Premium Otras categorias
Sega                               World Series 2001 IG02401E WaveRunner GP LTM170E6-L04 Otras categorias
ACME                               Extreme Rally wheel GW01 WB01 GA05 Otras categorias
Cyborg                               V.3 Game Pad F.L.Y 9 for Xbox 360 V.5 Rumble Pad Gaming Lights for PC Otras categorias
Nintendo                               DS Lite Wii Remote Plus MAA-RVL-A-WR-USZ-C0 Wii 3DS Otras categorias
Blockhead                               BH4010 BH123 Grinder BHR1000 BHEZ50 Otras categorias
Disney Interactive Studios                               The Chronicles of Narnia: Prince Caspian Power Rangers: Super Legends Nintendo DS NTR-ARDE-USA Hannah Montana: Rock Out the Show Otras categorias
VTech                               Cinderella Magic Wand Laptop Hand-Held Video Game Computer Pal In Concert QUIZ BIZ Otras categorias