⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fm_linelist.m

📁 这是一个很适合研究和学习用的电力系统仿真软件
💻 M
字号:
function fig = fm_linelist()
% FM_LINELIST create GUI for plotted variable lines
%
% HDL = FM_LINELIST()
%
% This function is generally called by a callback within FM_PLOTFIG
%
%Author:    Federico Milano
%Date:      11-Nov-2002
%Version:   1.0.0
%
%E-mail:    fmilano@thunderbox.uwaterloo.ca
%Web-site:  http://thunderbox.uwaterloo.ca/~fmilano
%
% Copyright (C) 2002-2006 Federico Milano

global Theme

h0 = figure('Color',Theme.color01, ...
	    'Units', 'normalized', ...
	    'Colormap',[], ...
	    'CreateFcn','Fig.line = gcf;', ...
	    'FileName','fm_linelist', ...
	    'DeleteFcn','Fig.line = 0;', ...
	    'MenuBar','none', ...
	    'Name','Line Settings', ...
	    'NumberTitle','off', ...
	    'PaperPosition',[18 180 576 432], ...
	    'PaperUnits','points', ...
	    'Position',sizefig(0.33,0.27), ...
	    'ToolBar','none');
h1 = uicontrol('Parent',h0, ...
	       'Units', 'normalized', ...
	       'BackgroundColor',Theme.color03, ...
	       'Callback','fm_plot listlines', ...
	       'FontWeight','bold', ...
	       'ForegroundColor',Theme.color04, ...
	       'HitTest','off', ...
	       'ListboxTop',0, ...
	       'Position',[0.096154    0.060714     0.37019     0.13929], ...
	       'String','Edit', ...
	       'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
	       'Units', 'normalized', ...
	       'BackgroundColor',Theme.color02, ...
	       'Callback','close(gcf)', ...
	       'HitTest','off', ...
	       'ListboxTop',0, ...
	       'Position',[0.51923    0.060714     0.37019     0.13929], ...
	       'String','Close', ...
	       'Tag','Pushbutton1');
string = ['if strcmp(get(Fig.line,''SelectionType''),' ...
          '''open''), fm_plot(''listlines''), end'];
h1 = uicontrol('Parent',h0, ...
	       'Units', 'normalized', ...
	       'BackgroundColor',Theme.color04, ...
	       'CreateFcn','fm_plot createlinelist', ...
	       'Callback',string, ...
	       'FontName',Theme.font01, ...
	       'ForegroundColor',Theme.color05, ...
	       'HitTest','off', ...
	       'Position',[0.096154     0.26071     0.79327     0.55357], ...
	       'Style','listbox', ...
	       'Tag','Listbox1', ...
	       'Value',1);
h1 = uicontrol('Parent',h0, ...
	       'Units', 'normalized', ...
	       'BackgroundColor',Theme.color01, ...
	       'HitTest','off', ...
	       'HorizontalAlignment','left', ...
	       'ListboxTop',0, ...
	       'Position',[0.096154     0.85357     0.51923    0.071429], ...
	       'String','Lines:', ...
	       'Style','text', ...
	       'Tag','StaticText1');
if nargout > 0, fig = h0; end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -