- 积分
- 15
- 注册时间
- 2008-7-20
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2009-6-14 17:37:48
|
显示全部楼层
来自 黑龙江哈尔滨
本帖最后由 TBE_Legend 于 2009-6-14 20:23 编辑
Try this in COMSOL 3.5a:
copy the .m file under the directory "C:\COMSOL35\script\guitool" which defines the ''frame'' command to your current work directory, say,''C:\COMSOL35a\mli\multiphysics''.
function varargout = frame(varargin)
%FRAME Create a window for use when creating a custom user interface.
% F = FRAME(TITLE) creates a frame with the specified title.
% In addition to the fixed arguments, additional property-value pairs
% can be given at the end of the function to further control how the
% frame is created.
%
% Property Value / {Default} Description
% -------------------------------------------------------------------------
% Position 2-element vector The position on the screen for the upper
% left corner of the frame.
% Size 2-element vector The size of the frame. If not given
% the frame will be packed to fit the
% size of the components that have been
% added to it.
%
% The function returns a frame object that can then be further manipulated
% using the methods in the following table:
%
% Method Description
% -------------------------------------------------------------------------
% addMenu(menu) Adds the specified menu at the end of the main
% menu bar of the frame.
% close Closes the frame.
% getSize Returns the size of the frame as a 2-element
% vector with width and height.
% setSize(width,height) Sets the size of the frame.
% show While the frame is being created it is
% invisible. Call the show method after adding
% all components to it to show it on screen.
%
% The methods for PANEL are also available for FRAME, thereby allowing you
% to add panels and components to a frame.
%
% See also the help text for COMPONENT to get details on property-value
% pairs and methods that are valid for all components.
%
% See also COMPONENT, DIALOG, PANEL
% Copyright (c) 1994-2008 by COMSOL AB
% $Revision: 1.9 $ $Date: 2008/08/05 09:17:28 $
for convenience, the whole "script" file folder is uploaded here. |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|