Aggiunta modalita interattiva
git-svn-id: svn://10.65.10.50/trunk@4770 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									392b0393b5
								
							
						
					
					
						commit
						ae0031d407
					
				@ -66,12 +66,25 @@ public:
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
bool TTest_application::menu(MENU_TAG)
 | 
			
		||||
{            
 | 
			
		||||
  if (*_maskname)
 | 
			
		||||
  {
 | 
			
		||||
    TMask m(_maskname);
 | 
			
		||||
    KEY k = m.run();
 | 
			
		||||
    if (k == K_QUIT) stop_run();
 | 
			
		||||
  }
 | 
			
		||||
  else
 | 
			
		||||
  {        
 | 
			
		||||
    TMask mr("ba3400a");
 | 
			
		||||
    while (mr.run() == K_ENTER)
 | 
			
		||||
    {
 | 
			
		||||
      TMask m(mr.get(102));
 | 
			
		||||
      KEY k = m.run();
 | 
			
		||||
//      if (k == K_QUIT) stop_run();
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return k != K_QUIT;
 | 
			
		||||
  return FALSE;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
///////////////////////////////////////////////////////////
 | 
			
		||||
@ -80,15 +93,15 @@ bool TTest_application::menu(MENU_TAG)
 | 
			
		||||
int ba3400(int argc, char* argv[])
 | 
			
		||||
{
 | 
			
		||||
  TApplication::check_parameters(argc, argv);
 | 
			
		||||
  if (argc < 3)
 | 
			
		||||
  {
 | 
			
		||||
    error_box("You should specify a mask");
 | 
			
		||||
    return 1;
 | 
			
		||||
  }
 | 
			
		||||
//  if (argc < 3)
 | 
			
		||||
//  {
 | 
			
		||||
//    error_box("You should specify a mask");
 | 
			
		||||
//    return 1;
 | 
			
		||||
//  }
 | 
			
		||||
 | 
			
		||||
  if (argc == 3)
 | 
			
		||||
  if (argc <= 3)
 | 
			
		||||
  {
 | 
			
		||||
    TTest_application a(argv[2]);
 | 
			
		||||
    TTest_application a(argc == 2 ? "" : argv[2]);
 | 
			
		||||
    a.run(argc, argv, "Testmask");
 | 
			
		||||
  }
 | 
			
		||||
  else
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										21
									
								
								ba/ba3400a.uml
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										21
									
								
								ba/ba3400a.uml
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,21 @@
 | 
			
		||||
#define F_NOME 102
 | 
			
		||||
 | 
			
		||||
PAGE "Richiesta" -1 -1 76 8
 | 
			
		||||
 | 
			
		||||
STRING F_NOME 50
 | 
			
		||||
BEGIN
 | 
			
		||||
  PROMPT 3 3 "Nome maschera"
 | 
			
		||||
END
 | 
			
		||||
 | 
			
		||||
BUTTON DLG_OK 10 2
 | 
			
		||||
BEGIN
 | 
			
		||||
  PROMPT -12 -1 ""
 | 
			
		||||
END
 | 
			
		||||
 | 
			
		||||
BUTTON DLG_CANCEL 10 2
 | 
			
		||||
BEGIN
 | 
			
		||||
  PROMPT -22 -1 ""
 | 
			
		||||
END
 | 
			
		||||
 | 
			
		||||
ENDPAGE
 | 
			
		||||
ENDMASK
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user