Skip to content
Snippets Groups Projects

Implements #92

Merged Lemmer, Jan requested to merge 91-define-userdlg-warning into development
2 files
+ 24
3
Compare changes
  • Side-by-side
  • Inline

Files

+ 18
2
@@ -55,7 +55,7 @@ classdef userDLG
@@ -55,7 +55,7 @@ classdef userDLG
obj.error(errorMessage)
obj.error(errorMessage)
end
end
end
end
function [] = userMSG(obj,message)
function [] = userMSG(obj,message)
%userMSG user message without priority
%userMSG user message without priority
% MSG will only be displaye if ShowMessages is true
% MSG will only be displaye if ShowMessages is true
@@ -83,5 +83,21 @@ classdef userDLG
@@ -83,5 +83,21 @@ classdef userDLG
end
end
end
end
end
end
end
 
methods(Static)
 
function [status] = userQuestion(dialogMessage)
 
%userQuestion displays Y/N user input
 
m = '';
 
while ~ismember(m,{'Y','y','n','N'})
 
m = input([dialogMessage,', Y/N [Y]? '],'s');
 
end
 
if ismember(m,{'Y','y'})
 
status = true;
 
else
 
status = false;
 
end
 
end
 
end %static
 
 
end % class
Loading