GUI Resize - region of interest???
    5 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Chris E.
      
 am 11 Jul. 2014
  
    
    
    
    
    Bearbeitet: Joseph Cheng
      
 am 11 Jul. 2014
            Hello all! I 'm trying to resize to a region of interest. Well I have half of what I want as shown in the code here:
    % Make figure 1
    f1 = figure('Name','Window 1');
    %Add some text boxes
    u1 = uicontrol(f1, ...
        'Style','text', ...
        'String','Upper Data', ...
        'Callback','feval(plotf)', ...
        'position', [250 380 100 15]);
    u1 = uicontrol(f1, ...
        'Style','text', ...
        'String','Lower Data', ...
        'Callback','feval(plotf)', ...
        'position', [250 20 100 15]);
    %grab current position data
    get(gcf,'position')
    %so you see both the upper and lower regions
    pause(2)
    %set new data
    set(gcf,'position', [677 610 560 210])
What I need is to find a way to get essentially a position of:
      set(gcf,'position', [677 610 560 210:420])
But that code is not the correct way to accomplish this. I need is a way to display the upper regions just like I display the lower regions.
Please help!
Thanks
0 Kommentare
Akzeptierte Antwort
  Robert Cumming
      
 am 11 Jul. 2014
        I'm not clear about the actual question but the position vector defined as:
 [bottomLeft topRight width height]
so are you looking for:
 set ( gcf, 'position', [677 610 564 420] )
1 Kommentar
  Joseph Cheng
      
 am 11 Jul. 2014
				
      Bearbeitet: Joseph Cheng
      
 am 11 Jul. 2014
  
			Additional information can be found in the poster's earlier post where we suggested the code would not work that way.  http://www.mathworks.com/matlabcentral/answers/141455-gui-position-property-issue
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


