Invertiti i pulsanti Fine e Menu precedente.
git-svn-id: svn://10.65.10.50/trunk@3611 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									d1870008ba
								
							
						
					
					
						commit
						a8dda0d407
					
				
							
								
								
									
										17
									
								
								ba/ba0.cpp
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								ba/ba0.cpp
									
									
									
									
									
								
							@ -745,17 +745,16 @@ int TMenu_application::do_level()
 | 
				
			|||||||
  menu.add_static(-1, 0, "Cerca", 1,-3);
 | 
					  menu.add_static(-1, 0, "Cerca", 1,-3);
 | 
				
			||||||
  TEdit_field& ef = menu.add_string(DLG_USER, 0, "", -12, -3, 50, "", bwidth+1);
 | 
					  TEdit_field& ef = menu.add_string(DLG_USER, 0, "", -12, -3, 50, "", bwidth+1);
 | 
				
			||||||
  ef.set_handler(menu_find_handler);
 | 
					  ef.set_handler(menu_find_handler);
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  TButton_field& bf = menu.add_button(DLG_QUIT, 0, "Fine", -12, -1, bwidth, 2);  
 | 
				
			||||||
 | 
					  RCT e_rct; ef.get_rect(e_rct);   // Rettangolo cerca
 | 
				
			||||||
 | 
					  RCT b_rct; bf.get_rect(b_rct);   // Rettangolo bottone
 | 
				
			||||||
 | 
					  b_rct.left = e_rct.left-2;       // Aggiusta rettangolo
 | 
				
			||||||
 | 
					  b_rct.right = e_rct.right+2;
 | 
				
			||||||
 | 
					  bf.set_rect(b_rct);              // Modifica bottone
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  menu.add_button(DLG_QUIT, 0, "Fine", -22, -1, bwidth, 2);  
 | 
					 | 
				
			||||||
  if (first)       
 | 
					  if (first)       
 | 
				
			||||||
  {
 | 
					    menu.add_button(DLG_CANCEL, 0, "Menu precedente", -22, -1, bwidth, 2);  
 | 
				
			||||||
    TButton_field& bf = menu.add_button(DLG_CANCEL, 0, "Menu precedente", -12, -1, bwidth, 2);  
 | 
					 | 
				
			||||||
    RCT e_rct; ef.get_rect(e_rct);   // Rettangolo cerca
 | 
					 | 
				
			||||||
    RCT b_rct; bf.get_rect(b_rct);   // Rettangolo bottone
 | 
					 | 
				
			||||||
    b_rct.left = e_rct.left-2;       // Aggiusta rettangolo
 | 
					 | 
				
			||||||
    b_rct.right = e_rct.right+2;
 | 
					 | 
				
			||||||
    bf.set_rect(b_rct);              // Modifica bottone
 | 
					 | 
				
			||||||
  }  
 | 
					 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  if (_find_button && _last_button > first) 
 | 
					  if (_find_button && _last_button > first) 
 | 
				
			||||||
    menu.first_focus(100+_last_button-first);
 | 
					    menu.first_focus(100+_last_button-first);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user