Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
backmen.m
Package: 现代通信系统matlab版源代码.zip [view]
Upload User: loeagle
Upload Date: 2013-03-02
Package Size: 1236k
Code Size: 2k
Category:
Communication Document
Development Platform:
Matlab
- function rarg = backmen (action);
- % menu to return to main menu
- global Buttons;
- global menuwinh;
- global buttonh;
- global MenuWinPos;
- Buttons = 1;
- ButtonText1 = 'Main Menu';
- if nargin < 1 % no argument -> init
- action = 'init';
- end;
- % -----------------------------------------------------------------
- % init
- % initialize variables and open window
- if strcmp (action, 'init')
- % constants and definitions
- set(0,'Units','pixels');
- scnsize = get(0,'ScreenSize');
- MenuWinPos = [10 (scnsize(4) - (Buttons*28+50)-40)]; % window position
- backmen ('openmenuwin'); % open window
- end;
- % -----------------------------------------------------------------
- % openmenuwin
- % open window
- if strcmp (action, 'openmenuwin')
- menuwinh = figure ('Color', 'white', ... % open window
- 'Position', [MenuWinPos 160 (Buttons*28+50)], ...
- 'Name', 'Tutorial', ...
- 'NumberTitle', 'off', ...
- 'MenuBar', 'none', ...
- 'Resize', 'off', ...
- 'UserData', 'backmen');
- uicontrol (menuwinh, ...
- 'Style', 'text', ...
- 'Position', [5 (Buttons*28+10) 150 25], ...
- 'BackgroundColor', 'white', ...
- 'HorizontalAlignment', 'center', ...
- 'String', 'End of Experiment');
- for k = 1:Buttons
- ypos = (Buttons- k) * 28 + 10;
- ButtonTextString = eval (['ButtonText' num2str(k)]);
- CallBackFunction = ['Button' num2str(k)];
- createbutton = ['buttonh(' num2str(k) ') = uicontrol (menuwinh, ' ...
- '''Position'', [5 ' num2str(ypos) ' 150 22], ' ...
- '''String'', ''' ButtonTextString ''', ' ...
- '''BackgroundColor'', ''white'', ' ...
- '''CallBack'', ''backmen (''''' CallBackFunction ''''')'');'];
- eval (createbutton);
- end;
- clear createbutton ypos ButtonTextStr CallBackFunction;
- end;
- % -----------------------------------------------------------------
- % Button1
- if strcmp (action, 'Button1')
- global name;
- if exist('name') == 1
- if ~isempty(name)
- eval(['abschuss ',name]);
- end;
- end
- delete (menuwinh);
- close;
- DigModTutorial;
- end;