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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 759
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 469
10 Examples of GUIDE GUIs
Change the Height
The height a nd width of the figure is specified in pix el units. Usin g units
of pixels enables maximizing and minimizing the figure to work properly.
Thecodeassumesthatitsdimensionsare470-by-250pixels. Iftheuser
attempts to change the height, the code restores the original height. However,
because the resize function is triggered w hen the user releases the mouse
button after changing the size, the resize function cannot always determine
the original position of the GUI on screen. Therefore, the resize function
applies a compensation to the vertical p osition (second element in the figure
Position vector) by adding the vertical p osition to the height when the mouse
is released and subtracting the original height.
When the figure is resized from the bottom, it stays in the same position.
When resized from the top, the figure moves to the location where the mouse
button is released.
Ensure the Resized Figure Is On Screen
The resize function c alls movegu i to ensure that the resized figure is on
screen regardless of where the user releases the m ouse.
The first time it runs, the GUI is displayed at the s ize and location specified
by the figure
Position property. You can set this property with the Property
Inspector when you create the GUI or change it in GUIDE at any time.
ResizeFcn Code Listing
function Resize Fcn( hObject, eventdata, handles, varargin)
% Handles resize behavior e xcept when docked. This is because a certain
% window height is always preserved, and b ecause docked windo ws can
% have arbitrary proportions.
%Figure Unit s are fixed as 'pixels'; uicontrol units are in 'characters'
Figure_Size = get(hObject,'Position');
% This is the figure's orig inal position in pi xel units
Original_Size = [350 700 470 250];
% If the figure seems to be maximized, do not resize at all
pix_pos = get(hObject,'Position ');
scr_size = get(0,'ScreenSize');
if .99*scr_s ize( 3) < pix_pos(3) % Apparentl y maximized
% When docked, get out
10-96
Przeglądanie stron 469
1 2 ... 465 466 467 468 469 470 471 472 473 474 475 ... 758 759

Komentarze do niniejszej Instrukcji

Brak uwag

Philips 303463166 manuals

Owner’s manuals and user’s guides for Unknown Philips 303463166.
We providing 1 pdf manuals Philips 303463166 for download free by document types: Manual


Philips 303463166 Manual (1 pages)


Brand: Philips | Category: No info | Size: 0.53 MB |

 

Table of contents





More products and manuals for Unknown Philips

Models Document Type
FC8033/01 Datasheet   Philips exhaust filter FC8033, 2 pages
FC8046 Datasheet   Philips FC8046 Disposable dust bag, 2 pages
305143166 Manual   Philips 305143166 User manual, 1 pages
Kidsplace Manual   Philips 300633486 User manual, 2 pages
303451766 Manual   Philips 303443166 User manual, 1 pages
369981786 Manual Philips 369984386 User manual, 2 pages
myKitchen Manual Philips myKitchen, 1 pages
300543186 Manual   Philips 300483186 User manual, 1 pages
Kidsplace Manual   Philips Kidsplace, 2 pages
320663176 Manual   Philips 320663176 User manual, 2 pages
34144/31/16 Specifications    Philips myBathroom Ceiling light 32005/31/16, 4 pages
316103186 User Manual   Philips Ceiling light 31610/11/86, 8 pages
34022/11/16 Specifications      Philips myBathroom Ceiling light 32021/11/16, 34 pages
408343116 User Manual   Philips Ledino 408343116 ceiling lighting, 8 pages
SM120V LED27S/840 PSD W60L60 Installation Manual   Philips SM120V LED37S/840 PSU W20L120, 2 pages
AEA1000/37 User Manual   Philips AEA1000/37 User manual, 16 pages
30852/31/16 Specifications       Philips myKidsRoom Ceiling light 30110/55/16, 32 pages
InStyle User Manual   Philips InStyle Ceiling light 37481/30/16, 8 pages
690573116 User Manual       Philips InStyle Ceiling light 69057/31/16, 25 pages
InStyle User Manual   Philips InStyle Ceiling light 40740/17/16, 8 pages