xxsimSetWindowSize - Set the size of the last opened window Syntax: result = xxsimSetWindowSize(left, top, width, height) Inputs: left = left window position top = top window position width = window width height = window height Outputs: result = boolean indicating the success. Examples: xxsimSetWindowSize(0, 0, 640, 480) See also: xxsimSetWindowSize Author: Controllab Products B.V. email: info@controllab.nl Website: http://www.controllab.nl May 2016
0001 function [result] = xxsimSetWindowSize(varargin) 0002 % xxsimSetWindowSize - Set the size of the last opened window 0003 % 0004 % Syntax: 0005 % result = xxsimSetWindowSize(left, top, width, height) 0006 % 0007 % Inputs: 0008 % left = left window position 0009 % top = top window position 0010 % width = window width 0011 % height = window height 0012 % 0013 % Outputs: 0014 % result = boolean indicating the success. 0015 % 0016 % Examples: 0017 % xxsimSetWindowSize(0, 0, 640, 480) 0018 % 0019 % See also: xxsimSetWindowSize 0020 % 0021 % Author: Controllab Products B.V. 0022 % email: info@controllab.nl 0023 % Website: http://www.controllab.nl 0024 % May 2016 0025 0026 %------------- BEGIN CODE -------------- 0027 %check input arguments 0028 if ~(length(varargin)==4) 0029 error('Funcion requires 4 arguments: left, top, width, and height.'); 0030 end 0031 0032 left = varargin{1}; 0033 top = varargin{2}; 0034 width = varargin{3}; 0035 height = varargin{4}; 0036 0037 result = xrlinvoke('xxsim.util.setWindowSize', struct('left', int32(left), 'top', int32(top), 'width', int32(width), 'height', int32(height))); 0038 end 0039 %------------- END OF CODE --------------